1error: expected identifier, found keyword `self` 2 --> $DIR/invalid-self.rs:8:26 3 | 48 | 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 --> $DIR/invalid-self.rs:9:34 9 | 109 | 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 --> $DIR/invalid-self.rs:11:25 15 | 1611 | fn self_subpat(self @ S {}: Self) {} //~ ERROR expected one of `)`, `,`, or `:`, found `@` 17 | ^ expected parameter name 18 19error: expected one of `)`, `,`, or `:`, found `@` 20 --> $DIR/invalid-self.rs:11:25 21 | 2211 | fn self_subpat(self @ S {}: Self) {} //~ ERROR expected one of `)`, `,`, or `:`, found `@` 23 | -^ expected one of `)`, `,`, or `:` 24 | | 25 | help: missing `,` 26