• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1error: expected identifier, found keyword `self`
2  --> tests/ui/pinned_drop/invalid-self.rs:10:26
3   |
410 |     fn take_ref_self(ref self: Pin<&mut Self>) {} //~ ERROR expected identifier, found keyword `self`
5   |                          ^^^^ expected identifier, found keyword
6
7error: expected identifier, found keyword `self`
8  --> tests/ui/pinned_drop/invalid-self.rs:11:34
9   |
1011 |     fn take_ref_mut_self(ref mut self: Pin<&mut Self>) {} //~ ERROR expected identifier, found keyword `self`
11   |                                  ^^^^ expected identifier, found keyword
12
13error: expected parameter name, found `@`
14  --> tests/ui/pinned_drop/invalid-self.rs:13:25
15   |
1613 |     fn self_subpat(self @ S {}: Self) {} //~ ERROR expected one of `)`, `,`, or `:`, found `@`
17   |                         ^ expected parameter name
18
19error: expected one of `)`, `,`, or `:`, found `@`
20  --> tests/ui/pinned_drop/invalid-self.rs:13:25
21   |
2213 |     fn self_subpat(self @ S {}: Self) {} //~ ERROR expected one of `)`, `,`, or `:`, found `@`
23   |                        -^ expected one of `)`, `,`, or `:`
24   |                        |
25   |                        help: missing `,`
26