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 is a `self` type, give it a parameter name
10 LL | fn foo(self: i32);
12 help: if this was a parameter name, give it a type
14 LL | fn foo(i32: TypeName);
16 help: if this is a type, explicitly ignore the parameter name
21 error: expected one of `:`, `@`, or `|`, found `,`
22 --> $DIR/anon-params-denied-2018.rs:8:36
24 LL | fn bar_with_default_impl(String, String) {}
25 | ^ expected one of `:`, `@`, or `|` here
27 = note: anonymous parameters are removed in the 2018 edition (see RFC 1685)
28 help: if this is a `self` type, give it a parameter name
30 LL | fn bar_with_default_impl(self: String, String) {}
32 help: if this was a parameter name, give it a type
34 LL | fn bar_with_default_impl(String: TypeName, String) {}
36 help: if this is a type, explicitly ignore the parameter name
38 LL | fn bar_with_default_impl(_: String, String) {}
41 error: expected one of `:`, `@`, or `|`, found `)`
42 --> $DIR/anon-params-denied-2018.rs:8:44
44 LL | fn bar_with_default_impl(String, String) {}
45 | ^ expected one of `:`, `@`, or `|` here
47 = note: anonymous parameters are removed in the 2018 edition (see RFC 1685)
48 help: if this was a parameter name, give it a type
50 LL | fn bar_with_default_impl(String, String: TypeName) {}
52 help: if this is a type, explicitly ignore the parameter name
54 LL | fn bar_with_default_impl(String, _: String) {}
57 error: expected one of `:`, `@`, or `|`, found `,`
58 --> $DIR/anon-params-denied-2018.rs:13:22
60 LL | fn baz(a:usize, b, c: usize) -> usize {
61 | ^ expected one of `:`, `@`, or `|` here
63 = note: anonymous parameters are removed in the 2018 edition (see RFC 1685)
64 help: if this was a parameter name, give it a type
66 LL | fn baz(a:usize, b: TypeName, c: usize) -> usize {
68 help: if this is a type, explicitly ignore the parameter name
70 LL | fn baz(a:usize, _: b, c: usize) -> usize {
73 error: aborting due to 4 previous errors