blob: bdb8faa6c6593975ad0dfd09db6fa7ed04362fcd (
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
error: expected one of `:` or `@`, found `bar`
--> $DIR/inverted-parameters.rs:4:24
|
LL | fn foo(&self, &str bar) {}
| -----^^^
| | |
| | expected one of `:` or `@` here
| help: declare the type after the parameter binding: `<identifier>: <type>`
error: expected one of `:` or `@`, found `quux`
--> $DIR/inverted-parameters.rs:10:10
|
LL | fn baz(S quux, xyzzy: i32) {}
| --^^^^
| | |
| | expected one of `:` or `@` here
| help: declare the type after the parameter binding: `<identifier>: <type>`
error: expected one of `:` or `@`, found `a`
--> $DIR/inverted-parameters.rs:15:12
|
LL | fn one(i32 a b) {}
| ^ expected one of `:` or `@` here
error: expected `:`, found `(`
--> $DIR/inverted-parameters.rs:18:23
|
LL | fn pattern((i32, i32) (a, b)) {}
| ^ expected `:`
error: expected one of `:` or `@`, found `)`
--> $DIR/inverted-parameters.rs:21:12
|
LL | fn fizz(i32) {}
| ^ expected one of `:` or `@` here
error: expected one of `:` or `@`, found `S`
--> $DIR/inverted-parameters.rs:24:23
|
LL | fn missing_colon(quux S) {}
| -----^
| | |
| | expected one of `:` or `@` here
| help: declare the type after the parameter binding: `<identifier>: <type>`
error: aborting due to 6 previous errors
|