summary refs log tree commit diff
path: root/src/test/ui/issues/issue-36638.stderr
blob: fe48ea158de64651a51f0f87795d7e6c0975b381 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
error: expected identifier, found keyword `Self`
  --> $DIR/issue-36638.rs:1:12
   |
LL | struct Foo<Self>(Self);
   |            ^^^^ expected identifier, found keyword

error: expected identifier, found keyword `Self`
  --> $DIR/issue-36638.rs:5:11
   |
LL | trait Bar<Self> {}
   |           ^^^^ expected identifier, found keyword

error[E0392]: parameter `Self` is never used
  --> $DIR/issue-36638.rs:1:12
   |
LL | struct Foo<Self>(Self);
   |            ^^^^ unused parameter
   |
   = help: consider removing `Self`, referring to it in a field, or using a marker such as `std::marker::PhantomData`

error: aborting due to 3 previous errors

For more information about this error, try `rustc --explain E0392`.