|
1 | | -error[E0391]: cycle detected when computing type of `<impl at $DIR/resolve-self-in-impl.rs:14:1: 14:17>` |
| 1 | +error: `Self` is not valid at this location |
2 | 2 | --> $DIR/resolve-self-in-impl.rs:14:13 |
3 | 3 | | |
4 | 4 | LL | impl Tr for Self {} |
5 | 5 | | ^^^^ |
6 | | - | |
7 | | - = note: ...which immediately requires computing type of `<impl at $DIR/resolve-self-in-impl.rs:14:1: 14:17>` again |
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 | 6 |
|
20 | | -error[E0391]: cycle detected when computing type of `<impl at $DIR/resolve-self-in-impl.rs:15:1: 15:20>` |
21 | | - --> $DIR/resolve-self-in-impl.rs:15:15 |
| 7 | +error: `Self` is not valid at this location |
| 8 | + --> $DIR/resolve-self-in-impl.rs:15:13 |
22 | 9 | | |
23 | 10 | LL | impl Tr for S<Self> {} |
24 | | - | ^^^^ |
25 | | - | |
26 | | - = note: ...which immediately requires computing type of `<impl at $DIR/resolve-self-in-impl.rs:15:1: 15:20>` again |
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 | | - | |____________^ |
| 11 | + | ^^^^^^^ |
38 | 12 |
|
39 | | -error[E0391]: cycle detected when computing type of `<impl at $DIR/resolve-self-in-impl.rs:16:1: 16:10>` |
| 13 | +error: `Self` is not valid at this location |
40 | 14 | --> $DIR/resolve-self-in-impl.rs:16:6 |
41 | 15 | | |
42 | 16 | LL | impl Self {} |
43 | 17 | | ^^^^ |
44 | | - | |
45 | | - = note: ...which immediately requires computing type of `<impl at $DIR/resolve-self-in-impl.rs:16:1: 16:10>` again |
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 | 18 |
|
58 | | -error[E0391]: cycle detected when computing type of `<impl at $DIR/resolve-self-in-impl.rs:17:1: 17:13>` |
59 | | - --> $DIR/resolve-self-in-impl.rs:17:8 |
| 19 | +error: `Self` is not valid at this location |
| 20 | + --> $DIR/resolve-self-in-impl.rs:17:6 |
60 | 21 | | |
61 | 22 | LL | impl S<Self> {} |
62 | | - | ^^^^ |
63 | | - | |
64 | | - = note: ...which immediately requires computing type of `<impl at $DIR/resolve-self-in-impl.rs:17:1: 17:13>` again |
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 | | - | |____________^ |
| 23 | + | ^^^^^^^ |
76 | 24 |
|
77 | 25 | error[E0391]: cycle detected when computing trait implemented by `<impl at $DIR/resolve-self-in-impl.rs:18:1: 18:23>` |
78 | 26 | --> $DIR/resolve-self-in-impl.rs:18:1 |
|
0 commit comments