1+ error: `Self` is only available in impls, traits, and type definitions
2+ --> $DIR/resolve-self-in-impl.rs:14:13
3+ |
4+ LL | impl Tr for Self {}
5+ | ^^^^
6+
7+ error: `Self` is only available in impls, traits, and type definitions
8+ --> $DIR/resolve-self-in-impl.rs:16:15
9+ |
10+ LL | impl Tr for S<Self> {}
11+ | ^^^^
12+
13+ error: `Self` is only available in impls, traits, and type definitions
14+ --> $DIR/resolve-self-in-impl.rs:18:6
15+ |
16+ LL | impl Self {}
17+ | ^^^^
18+
19+ error: `Self` is only available in impls, traits, and type definitions
20+ --> $DIR/resolve-self-in-impl.rs:20:8
21+ |
22+ LL | impl S<Self> {}
23+ | ^^^^
24+
125error[E0391]: cycle detected when computing type of `<impl at $DIR/resolve-self-in-impl.rs:14:1: 14:20>`
226 --> $DIR/resolve-self-in-impl.rs:14:13
327 |
@@ -17,13 +41,13 @@ LL | |
1741LL | | fn main() {}
1842 | |____________^
1943
20- error[E0391]: cycle detected when computing type of `<impl at $DIR/resolve-self-in-impl.rs:15 :1: 15 :23>`
21- --> $DIR/resolve-self-in-impl.rs:15 :15
44+ error[E0391]: cycle detected when computing type of `<impl at $DIR/resolve-self-in-impl.rs:16 :1: 16 :23>`
45+ --> $DIR/resolve-self-in-impl.rs:16 :15
2246 |
2347LL | impl Tr for S<Self> {}
2448 | ^^^^
2549 |
26- = note: ...which immediately requires computing type of `<impl at $DIR/resolve-self-in-impl.rs:15 :1: 15 :23>` again
50+ = note: ...which immediately requires computing type of `<impl at $DIR/resolve-self-in-impl.rs:16 :1: 16 :23>` again
2751note: cycle used when collecting item types in top-level module
2852 --> $DIR/resolve-self-in-impl.rs:1:1
2953 |
@@ -36,13 +60,13 @@ LL | |
3660LL | | fn main() {}
3761 | |____________^
3862
39- error[E0391]: cycle detected when computing type of `<impl at $DIR/resolve-self-in-impl.rs:16 :1: 16 :13>`
40- --> $DIR/resolve-self-in-impl.rs:16 :6
63+ error[E0391]: cycle detected when computing type of `<impl at $DIR/resolve-self-in-impl.rs:18 :1: 18 :13>`
64+ --> $DIR/resolve-self-in-impl.rs:18 :6
4165 |
4266LL | impl Self {}
4367 | ^^^^
4468 |
45- = note: ...which immediately requires computing type of `<impl at $DIR/resolve-self-in-impl.rs:16 :1: 16 :13>` again
69+ = note: ...which immediately requires computing type of `<impl at $DIR/resolve-self-in-impl.rs:18 :1: 18 :13>` again
4670note: cycle used when collecting item types in top-level module
4771 --> $DIR/resolve-self-in-impl.rs:1:1
4872 |
@@ -55,13 +79,13 @@ LL | |
5579LL | | fn main() {}
5680 | |____________^
5781
58- error[E0391]: cycle detected when computing type of `<impl at $DIR/resolve-self-in-impl.rs:17 :1: 17 :16>`
59- --> $DIR/resolve-self-in-impl.rs:17 :8
82+ error[E0391]: cycle detected when computing type of `<impl at $DIR/resolve-self-in-impl.rs:20 :1: 20 :16>`
83+ --> $DIR/resolve-self-in-impl.rs:20 :8
6084 |
6185LL | impl S<Self> {}
6286 | ^^^^
6387 |
64- = note: ...which immediately requires computing type of `<impl at $DIR/resolve-self-in-impl.rs:17 :1: 17 :16>` again
88+ = note: ...which immediately requires computing type of `<impl at $DIR/resolve-self-in-impl.rs:20 :1: 20 :16>` again
6589note: cycle used when collecting item types in top-level module
6690 --> $DIR/resolve-self-in-impl.rs:1:1
6791 |
@@ -74,13 +98,13 @@ LL | |
7498LL | | fn main() {}
7599 | |____________^
76100
77- error[E0391]: cycle detected when computing trait implemented by `<impl at $DIR/resolve-self-in-impl.rs:18 :1: 18 :26>`
78- --> $DIR/resolve-self-in-impl.rs:18 :1
101+ error[E0391]: cycle detected when computing trait implemented by `<impl at $DIR/resolve-self-in-impl.rs:22 :1: 22 :26>`
102+ --> $DIR/resolve-self-in-impl.rs:22 :1
79103 |
80104LL | impl Tr<Self::A> for S {}
81105 | ^^^^^^^^^^^^^^^^^^^^^^
82106 |
83- = note: ...which immediately requires computing trait implemented by `<impl at $DIR/resolve-self-in-impl.rs:18 :1: 18 :26>` again
107+ = note: ...which immediately requires computing trait implemented by `<impl at $DIR/resolve-self-in-impl.rs:22 :1: 22 :26>` again
84108note: cycle used when collecting item types in top-level module
85109 --> $DIR/resolve-self-in-impl.rs:1:1
86110 |
@@ -93,6 +117,6 @@ LL | |
93117LL | | fn main() {}
94118 | |____________^
95119
96- error: aborting due to 5 previous errors
120+ error: aborting due to 9 previous errors
97121
98122For more information about this error, try `rustc --explain E0391`.
0 commit comments