]> git.proxmox.com Git - rustc.git/blame - src/test/ui/issues/issue-36638.stderr
New upstream version 1.54.0+dfsg1
[rustc.git] / src / test / ui / issues / issue-36638.stderr
CommitLineData
8faf50e0 1error: expected identifier, found keyword `Self`
dc9dc135 2 --> $DIR/issue-36638.rs:1:12
8faf50e0
XL
3 |
4LL | struct Foo<Self>(Self);
5 | ^^^^ expected identifier, found keyword
6
7error: expected identifier, found keyword `Self`
dc9dc135 8 --> $DIR/issue-36638.rs:5:11
8faf50e0
XL
9 |
10LL | trait Bar<Self> {}
11 | ^^^^ expected identifier, found keyword
12
a1dfa0c6 13error[E0392]: parameter `Self` is never used
dc9dc135 14 --> $DIR/issue-36638.rs:1:12
a1dfa0c6
XL
15 |
16LL | 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
22error: aborting due to 3 previous errors
8faf50e0 23
a1dfa0c6 24For more information about this error, try `rustc --explain E0392`.