]> git.proxmox.com Git - rustc.git/blame - src/test/ui/anon-params-denied-2018.stderr
New upstream version 1.37.0+dfsg1
[rustc.git] / src / test / ui / anon-params-denied-2018.stderr
CommitLineData
b7449926
XL
1error: expected one of `:` or `@`, found `)`
2 --> $DIR/anon-params-denied-2018.rs:6:15
3 |
532ac7d7 4LL | fn foo(i32);
dc9dc135 5 | ^ expected one of `:` or `@` here
0731742a
XL
6 |
7 = note: anonymous parameters are removed in the 2018 edition (see RFC 1685)
dc9dc135
XL
8help: if this was a parameter name, give it a type
9 |
10LL | fn foo(i32: TypeName);
11 | ^^^^^^^^^^^^^
12help: if this is a type, explicitly ignore the parameter name
13 |
14LL | fn foo(_: i32);
15 | ^^^^^^
b7449926
XL
16
17error: expected one of `:` or `@`, found `,`
18 --> $DIR/anon-params-denied-2018.rs:8:36
19 |
20LL | fn bar_with_default_impl(String, String) {}
dc9dc135
XL
21 | ^ expected one of `:` or `@` here
22 |
23 = note: anonymous parameters are removed in the 2018 edition (see RFC 1685)
24help: if this was a parameter name, give it a type
25 |
26LL | fn bar_with_default_impl(String: TypeName, String) {}
27 | ^^^^^^^^^^^^^^^^
28help: if this is a type, explicitly ignore the parameter name
29 |
30LL | fn bar_with_default_impl(_: String, String) {}
31 | ^^^^^^^^^
32
33error: expected one of `:` or `@`, found `)`
34 --> $DIR/anon-params-denied-2018.rs:8:44
35 |
36LL | fn bar_with_default_impl(String, String) {}
37 | ^ expected one of `:` or `@` here
0731742a
XL
38 |
39 = note: anonymous parameters are removed in the 2018 edition (see RFC 1685)
dc9dc135
XL
40help: if this was a parameter name, give it a type
41 |
42LL | fn bar_with_default_impl(String, String: TypeName) {}
43 | ^^^^^^^^^^^^^^^^
44help: if this is a type, explicitly ignore the parameter name
45 |
46LL | fn bar_with_default_impl(String, _: String) {}
47 | ^^^^^^^^^
48
49error: expected one of `:` or `@`, found `,`
50 --> $DIR/anon-params-denied-2018.rs:13:22
51 |
52LL | fn baz(a:usize, b, c: usize) -> usize {
53 | ^ expected one of `:` or `@` here
54 |
55 = note: anonymous parameters are removed in the 2018 edition (see RFC 1685)
56help: if this was a parameter name, give it a type
57 |
58LL | fn baz(a:usize, b: TypeName, c: usize) -> usize {
59 | ^^^^^^^^^^^
60help: if this is a type, explicitly ignore the parameter name
61 |
62LL | fn baz(a:usize, _: b, c: usize) -> usize {
63 | ^^^^
b7449926 64
dc9dc135 65error: aborting due to 4 previous errors
b7449926 66