4 fn foo(&self, &str bar) {}
5 //~^ ERROR expected one of `:`, `@`
6 //~| HELP declare the type after the parameter binding
7 //~| SUGGESTION <identifier>: <type>
10 fn baz(S quux, xyzzy: i32) {}
11 //~^ ERROR expected one of `:`, `@`
12 //~| HELP declare the type after the parameter binding
13 //~| SUGGESTION <identifier>: <type>
16 //~^ ERROR expected one of `:`, `@`
18 fn pattern((i32, i32) (a, b)) {}
19 //~^ ERROR expected one of `:`
22 //~^ ERROR expected one of `:`, `@`
23 //~| HELP if this is a parameter name, give it a type
24 //~| HELP if this is a `self` type, give it a parameter name
25 //~| HELP if this is a type, explicitly ignore the parameter name
27 fn missing_colon(quux S) {}
28 //~^ ERROR expected one of `:`, `@`
29 //~| HELP declare the type after the parameter binding
30 //~| SUGGESTION <identifier>: <type>