|
1 |
| -error: `Self` is not valid at this location |
| 1 | +error: `Self` is not valid in the self type of an impl block |
2 | 2 | --> $DIR/resolve-self-in-impl.rs:14:13
|
3 | 3 | |
|
4 | 4 | LL | impl Tr for Self {}
|
5 | 5 | | ^^^^
|
| 6 | + | |
| 7 | + = note: replace `Self` with a different type |
6 | 8 |
|
7 |
| -error: `Self` is not valid at this location |
8 |
| - --> $DIR/resolve-self-in-impl.rs:15:13 |
| 9 | +error: `Self` is not valid in the self type of an impl block |
| 10 | + --> $DIR/resolve-self-in-impl.rs:15:15 |
9 | 11 | |
|
10 | 12 | LL | impl Tr for S<Self> {}
|
11 |
| - | ^^^^^^^ |
| 13 | + | ^^^^ |
| 14 | + | |
| 15 | + = note: replace `Self` with a different type |
12 | 16 |
|
13 |
| -error: `Self` is not valid at this location |
| 17 | +error: `Self` is not valid in the self type of an impl block |
14 | 18 | --> $DIR/resolve-self-in-impl.rs:16:6
|
15 | 19 | |
|
16 | 20 | LL | impl Self {}
|
17 | 21 | | ^^^^
|
| 22 | + | |
| 23 | + = note: replace `Self` with a different type |
18 | 24 |
|
19 |
| -error: `Self` is not valid at this location |
20 |
| - --> $DIR/resolve-self-in-impl.rs:17:6 |
| 25 | +error: `Self` is not valid in the self type of an impl block |
| 26 | + --> $DIR/resolve-self-in-impl.rs:17:8 |
21 | 27 | |
|
22 | 28 | LL | impl S<Self> {}
|
23 |
| - | ^^^^^^^ |
| 29 | + | ^^^^ |
| 30 | + | |
| 31 | + = note: replace `Self` with a different type |
| 32 | + |
| 33 | +error: `Self` is not valid in the self type of an impl block |
| 34 | + --> $DIR/resolve-self-in-impl.rs:18:7 |
| 35 | + | |
| 36 | +LL | impl (Self, Self) {} |
| 37 | + | ^^^^ ^^^^ |
| 38 | + | |
| 39 | + = note: replace `Self` with a different type |
24 | 40 |
|
25 |
| -error[E0391]: cycle detected when computing trait implemented by `<impl at $DIR/resolve-self-in-impl.rs:18:1: 18:23>` |
26 |
| - --> $DIR/resolve-self-in-impl.rs:18:1 |
| 41 | +error[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 |
27 | 43 | |
|
28 | 44 | LL | impl Tr<Self::A> for S {}
|
29 | 45 | | ^^^^^^^^^^^^^^^^^^^^^^
|
30 | 46 | |
|
31 |
| - = note: ...which immediately requires computing trait implemented by `<impl at $DIR/resolve-self-in-impl.rs:18:1: 18:23>` again |
| 47 | + = note: ...which immediately requires computing trait implemented by `<impl at $DIR/resolve-self-in-impl.rs:19:1: 19:23>` again |
32 | 48 | note: cycle used when collecting item types in top-level module
|
33 | 49 | --> $DIR/resolve-self-in-impl.rs:1:1
|
34 | 50 | |
|
|
41 | 57 | LL | | fn main() {}
|
42 | 58 | | |____________^
|
43 | 59 |
|
44 |
| -error: aborting due to 5 previous errors |
| 60 | +error: aborting due to 6 previous errors |
45 | 61 |
|
46 | 62 | For more information about this error, try `rustc --explain E0391`.
|
0 commit comments