fork/rust

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

borsAuto merge of #67350 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum73528e339aa

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