1 error: expected one of `:`, `@`, or `|`, found `)`
2 --> $DIR/anon-params-denied-2018.rs:6:15
5 | ^ expected one of `:`, `@`, or `|` here
7 = note: anonymous parameters are removed in the 2018 edition (see RFC 1685)
8 help: if this was a parameter name, give it a type
10 LL | fn foo(i32: TypeName);
12 help: if this is a type, explicitly ignore the parameter name
17 error: expected one of `:`, `@`, or `|`, found `,`
18 --> $DIR/anon-params-denied-2018.rs:8:36
20 LL | fn bar_with_default_impl(String, String) {}
21 | ^ expected one of `:`, `@`, or `|` here
23 = note: anonymous parameters are removed in the 2018 edition (see RFC 1685)
24 help: if this was a parameter name, give it a type
26 LL | fn bar_with_default_impl(String: TypeName, String) {}
28 help: if this is a type, explicitly ignore the parameter name
30 LL | fn bar_with_default_impl(_: String, String) {}
33 error: expected one of `:`, `@`, or `|`, found `)`
34 --> $DIR/anon-params-denied-2018.rs:8:44
36 LL | fn bar_with_default_impl(String, String) {}
37 | ^ expected one of `:`, `@`, or `|` here
39 = note: anonymous parameters are removed in the 2018 edition (see RFC 1685)
40 help: if this was a parameter name, give it a type
42 LL | fn bar_with_default_impl(String, String: TypeName) {}
44 help: if this is a type, explicitly ignore the parameter name
46 LL | fn bar_with_default_impl(String, _: String) {}
49 error: expected one of `:`, `@`, or `|`, found `,`
50 --> $DIR/anon-params-denied-2018.rs:13:22
52 LL | fn baz(a:usize, b, c: usize) -> usize {
53 | ^ expected one of `:`, `@`, or `|` here
55 = note: anonymous parameters are removed in the 2018 edition (see RFC 1685)
56 help: if this was a parameter name, give it a type
58 LL | fn baz(a:usize, b: TypeName, c: usize) -> usize {
60 help: if this is a type, explicitly ignore the parameter name
62 LL | fn baz(a:usize, _: b, c: usize) -> usize {
65 error: aborting due to 4 previous errors