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