Files
another-boids-in-rust/vendor/pin-project/tests/ui/pinned_drop/invalid-self.stderr

26 lines
1.1 KiB
Plaintext

error: expected identifier, found keyword `self`
--> tests/ui/pinned_drop/invalid-self.rs:10:26
|
10 | 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`
--> tests/ui/pinned_drop/invalid-self.rs:11:34
|
11 | 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 `@`
--> tests/ui/pinned_drop/invalid-self.rs:13:25
|
13 | fn self_subpat(self @ S {}: Self) {} //~ ERROR expected one of `)`, `,`, or `:`, found `@`
| ^ expected parameter name
error: expected one of `)`, `,`, or `:`, found `@`
--> tests/ui/pinned_drop/invalid-self.rs:13:25
|
13 | fn self_subpat(self @ S {}: Self) {} //~ ERROR expected one of `)`, `,`, or `:`, found `@`
| -^ expected one of `)`, `,`, or `:`
| |
| help: missing `,`