1 error: expected identifier, found keyword `Self`
2 --> $DIR/keyword-self-as-type-param.rs:3:12
4 LL | struct Foo<Self>(Self);
5 | ^^^^ expected identifier, found keyword
7 error: expected identifier, found keyword `Self`
8 --> $DIR/keyword-self-as-type-param.rs:7:11
10 LL | trait Bar<Self> {}
11 | ^^^^ expected identifier, found keyword
13 error[E0392]: parameter `Self` is never used
14 --> $DIR/keyword-self-as-type-param.rs:3:12
16 LL | struct Foo<Self>(Self);
17 | ^^^^ unused parameter
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
22 error: aborting due to 3 previous errors
24 For more information about this error, try `rustc --explain E0392`.