fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #66089 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4560ea788cb

1.39.0
689 B23 linesraw
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` 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`.