fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
1.9 KiB63 linesraw
1error: `Self` is not valid in the self type of an impl block
2  --> $DIR/resolve-self-in-impl.rs:14:13
3   |
4LL | impl Tr for Self {}
5   |             ^^^^
6   |
7   = note: replace `Self` with a different type
8
9error: `Self` is not valid in the self type of an impl block
10  --> $DIR/resolve-self-in-impl.rs:15:15
11   |
12LL | impl Tr for S<Self> {}
13   |               ^^^^
14   |
15   = note: replace `Self` with a different type
16
17error: `Self` is not valid in the self type of an impl block
18  --> $DIR/resolve-self-in-impl.rs:16:6
19   |
20LL | impl Self {}
21   |      ^^^^
22   |
23   = note: replace `Self` with a different type
24
25error: `Self` is not valid in the self type of an impl block
26  --> $DIR/resolve-self-in-impl.rs:17:8
27   |
28LL | impl S<Self> {}
29   |        ^^^^
30   |
31   = note: replace `Self` with a different type
32
33error: `Self` is not valid in the self type of an impl block
34  --> $DIR/resolve-self-in-impl.rs:18:7
35   |
36LL | impl (Self, Self) {}
37   |       ^^^^  ^^^^
38   |
39   = note: replace `Self` with a different type
40
41error[E0391]: cycle detected when computing trait implemented by `<impl at $DIR/resolve-self-in-impl.rs:19:1: 19:23>`
42  --> $DIR/resolve-self-in-impl.rs:19:1
43   |
44LL | impl Tr<Self::A> for S {}
45   | ^^^^^^^^^^^^^^^^^^^^^^
46   |
47   = note: ...which immediately requires computing trait implemented by `<impl at $DIR/resolve-self-in-impl.rs:19:1: 19:23>` again
48note: cycle used when collecting item types in top-level module
49  --> $DIR/resolve-self-in-impl.rs:1:1
50   |
51LL | / #![feature(associated_type_defaults)]
52LL | |
53LL | | struct S<T = u8>(T);
54LL | | trait Tr<T = u8> {
55...  |
56LL | |
57LL | | fn main() {}
58   | |____________^
59   = note: see https://rustc-dev-guide.rust-lang.org/overview.html#queries and https://rustc-dev-guide.rust-lang.org/query.html for more information
60
61error: aborting due to 6 previous errors
62
63For more information about this error, try `rustc --explain E0391`.