fork/rust
git clone https://git.julia.blue/fork/rust
4fb7144ed15
1.43.0
1error: expected identifier, found keyword `Self` 2 --> $DIR/issue-36638.rs:1:12 3 | 4LL | struct Foo<Self>(Self); 5 | ^^^^ expected identifier, found keyword 6 7error: expected identifier, found keyword `Self` 8 --> $DIR/issue-36638.rs:5:11 9 | 10LL | trait Bar<Self> {} 11 | ^^^^ expected identifier, found keyword 12 13error[E0392]: parameter `Self` is never used 14 --> $DIR/issue-36638.rs:1:12 15 | 16LL | 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 `std::marker::PhantomData` 20 21error: aborting due to 3 previous errors 22 23For more information about this error, try `rustc --explain E0392`.