]> git.lizzy.rs Git - rust.git/blob - src/test/ui/resolve/resolve-self-in-impl.stderr
Rollup merge of #57418 - lqd:collector_query, r=michaelwoerister
[rust.git] / src / test / ui / resolve / resolve-self-in-impl.stderr
1 error[E0391]: cycle detected when processing `<impl at $DIR/resolve-self-in-impl.rs:14:1: 14:20>`
2   --> $DIR/resolve-self-in-impl.rs:14:13
3    |
4 LL | impl Tr for Self {} //~ ERROR cycle detected
5    |             ^^^^
6    |
7    = note: ...which again requires processing `<impl at $DIR/resolve-self-in-impl.rs:14:1: 14:20>`, completing the cycle
8 note: cycle used when collecting item types in top-level module
9   --> $DIR/resolve-self-in-impl.rs:1:1
10    |
11 LL | / #![feature(associated_type_defaults)]
12 LL | |
13 LL | | struct S<T = u8>(T);
14 LL | | trait Tr<T = u8> {
15 ...  |
16 LL | |
17 LL | | fn main() {}
18    | |____________^
19
20 error[E0391]: cycle detected when processing `<impl at $DIR/resolve-self-in-impl.rs:15:1: 15:23>`
21   --> $DIR/resolve-self-in-impl.rs:15:15
22    |
23 LL | impl Tr for S<Self> {} //~ ERROR cycle detected
24    |               ^^^^
25    |
26    = note: ...which again requires processing `<impl at $DIR/resolve-self-in-impl.rs:15:1: 15:23>`, completing the cycle
27 note: cycle used when collecting item types in top-level module
28   --> $DIR/resolve-self-in-impl.rs:1:1
29    |
30 LL | / #![feature(associated_type_defaults)]
31 LL | |
32 LL | | struct S<T = u8>(T);
33 LL | | trait Tr<T = u8> {
34 ...  |
35 LL | |
36 LL | | fn main() {}
37    | |____________^
38
39 error[E0391]: cycle detected when processing `<impl at $DIR/resolve-self-in-impl.rs:16:1: 16:13>`
40   --> $DIR/resolve-self-in-impl.rs:16:6
41    |
42 LL | impl Self {} //~ ERROR cycle detected
43    |      ^^^^
44    |
45    = note: ...which again requires processing `<impl at $DIR/resolve-self-in-impl.rs:16:1: 16:13>`, completing the cycle
46 note: cycle used when collecting item types in top-level module
47   --> $DIR/resolve-self-in-impl.rs:1:1
48    |
49 LL | / #![feature(associated_type_defaults)]
50 LL | |
51 LL | | struct S<T = u8>(T);
52 LL | | trait Tr<T = u8> {
53 ...  |
54 LL | |
55 LL | | fn main() {}
56    | |____________^
57
58 error[E0391]: cycle detected when processing `<impl at $DIR/resolve-self-in-impl.rs:17:1: 17:16>`
59   --> $DIR/resolve-self-in-impl.rs:17:8
60    |
61 LL | impl S<Self> {} //~ ERROR cycle detected
62    |        ^^^^
63    |
64    = note: ...which again requires processing `<impl at $DIR/resolve-self-in-impl.rs:17:1: 17:16>`, completing the cycle
65 note: cycle used when collecting item types in top-level module
66   --> $DIR/resolve-self-in-impl.rs:1:1
67    |
68 LL | / #![feature(associated_type_defaults)]
69 LL | |
70 LL | | struct S<T = u8>(T);
71 LL | | trait Tr<T = u8> {
72 ...  |
73 LL | |
74 LL | | fn main() {}
75    | |____________^
76
77 error[E0391]: cycle detected when processing `<impl at $DIR/resolve-self-in-impl.rs:18:1: 18:26>`
78   --> $DIR/resolve-self-in-impl.rs:18:1
79    |
80 LL | impl Tr<Self::A> for S {} //~ ERROR cycle detected
81    | ^^^^^^^^^^^^^^^^^^^^^^
82    |
83    = note: ...which again requires processing `<impl at $DIR/resolve-self-in-impl.rs:18:1: 18:26>`, completing the cycle
84 note: cycle used when collecting item types in top-level module
85   --> $DIR/resolve-self-in-impl.rs:1:1
86    |
87 LL | / #![feature(associated_type_defaults)]
88 LL | |
89 LL | | struct S<T = u8>(T);
90 LL | | trait Tr<T = u8> {
91 ...  |
92 LL | |
93 LL | | fn main() {}
94    | |____________^
95
96 error: aborting due to 5 previous errors
97
98 For more information about this error, try `rustc --explain E0391`.