]>
Commit | Line | Data |
---|---|---|
1 | error: expected identifier, found keyword `Self` | |
2 | --> $DIR/issue-36638.rs:1:12 | |
3 | | | |
4 | LL | struct Foo<Self>(Self); | |
5 | | ^^^^ expected identifier, found keyword | |
6 | ||
7 | error: expected identifier, found keyword `Self` | |
8 | --> $DIR/issue-36638.rs:5:11 | |
9 | | | |
10 | LL | trait Bar<Self> {} | |
11 | | ^^^^ expected identifier, found keyword | |
12 | ||
13 | error[E0392]: parameter `Self` is never used | |
14 | --> $DIR/issue-36638.rs:1:12 | |
15 | | | |
16 | LL | struct Foo<Self>(Self); | |
17 | | ^^^^ unused parameter | |
18 | | | |
19 | = help: consider removing `Self`, referring to it in a field, or using a marker such as `PhantomData` | |
20 | = help: if you intended `Self` to be a const parameter, use `const Self: usize` instead | |
21 | ||
22 | error: aborting due to 3 previous errors | |
23 | ||
24 | For more information about this error, try `rustc --explain E0392`. |