1 error: expected one of `:`, `@`, or `|`, found `bar`
2 --> $DIR/inverted-parameters.rs:4:24
4 LL | fn foo(&self, &str bar) {}
7 | | expected one of `:`, `@`, or `|`
8 | help: declare the type after the parameter binding: `<identifier>: <type>`
10 error: expected one of `:`, `@`, or `|`, found `quux`
11 --> $DIR/inverted-parameters.rs:10:10
13 LL | fn baz(S quux, xyzzy: i32) {}
16 | | expected one of `:`, `@`, or `|`
17 | help: declare the type after the parameter binding: `<identifier>: <type>`
19 error: expected one of `:`, `@`, or `|`, found `a`
20 --> $DIR/inverted-parameters.rs:15:12
22 LL | fn one(i32 a b) {}
23 | ^ expected one of `:`, `@`, or `|`
25 error: expected one of `:` or `|`, found `(`
26 --> $DIR/inverted-parameters.rs:18:23
28 LL | fn pattern((i32, i32) (a, b)) {}
29 | ^ expected one of `:` or `|`
31 error: expected one of `:`, `@`, or `|`, found `)`
32 --> $DIR/inverted-parameters.rs:21:12
35 | ^ expected one of `:`, `@`, or `|`
37 = note: anonymous parameters are removed in the 2018 edition (see RFC 1685)
38 help: if this is a `self` type, give it a parameter name
40 LL | fn fizz(self: i32) {}
42 help: if this was a parameter name, give it a type
44 LL | fn fizz(i32: TypeName) {}
46 help: if this is a type, explicitly ignore the parameter name
48 LL | fn fizz(_: i32) {}
51 error: expected one of `:`, `@`, or `|`, found `S`
52 --> $DIR/inverted-parameters.rs:27:23
54 LL | fn missing_colon(quux S) {}
57 | | expected one of `:`, `@`, or `|`
58 | help: declare the type after the parameter binding: `<identifier>: <type>`
60 error: aborting due to 6 previous errors