aboutsummaryrefslogtreecommitdiff
path: root/tests/ui/pinned_drop/invalid-self.stderr
blob: 3248704c0522697a9125732868afdf4340bb11ca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
error: expected identifier, found keyword `self`
 --> $DIR/invalid-self.rs:8:26
  |
8 |     fn take_ref_self(ref self: Pin<&mut Self>) {} //~ ERROR expected identifier, found keyword `self`
  |                          ^^^^ expected identifier, found keyword

error: expected identifier, found keyword `self`
 --> $DIR/invalid-self.rs:9:34
  |
9 |     fn take_ref_mut_self(ref mut self: Pin<&mut Self>) {} //~ ERROR expected identifier, found keyword `self`
  |                                  ^^^^ expected identifier, found keyword

error: expected parameter name, found `@`
  --> $DIR/invalid-self.rs:11:25
   |
11 |     fn self_subpat(self @ S {}: Self) {} //~ ERROR expected one of `)`, `,`, or `:`, found `@`
   |                         ^ expected parameter name

error: expected one of `)`, `,`, or `:`, found `@`
  --> $DIR/invalid-self.rs:11:25
   |
11 |     fn self_subpat(self @ S {}: Self) {} //~ ERROR expected one of `)`, `,`, or `:`, found `@`
   |                        -^ expected one of `)`, `,`, or `:`
   |                        |
   |                        help: missing `,`