1 error: expected one of `:`, `@`, or `|`, found `)`
2 --> $DIR/anon-params-denied-2018.rs:6:15
5 | ^ expected one of `:`, `@`, or `|`
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 is 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:9:29
24 LL | fn foo_with_ref(&mut i32);
25 | ^ expected one of `:`, `@`, or `|`
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 foo_with_ref(self: &mut i32);
32 help: if this is a parameter name, give it a type
34 LL | fn foo_with_ref(i32: &mut TypeName);
36 help: if this is a type, explicitly ignore the parameter name
38 LL | fn foo_with_ref(_: &mut i32);
41 error: expected one of `(`, `...`, `..=`, `..`, `::`, `:`, `{`, or `|`, found `)`
42 --> $DIR/anon-params-denied-2018.rs:12:47
44 LL | fn foo_with_qualified_path(<Bar as T>::Baz);
45 | ^ expected one of 8 possible tokens
47 = note: anonymous parameters are removed in the 2018 edition (see RFC 1685)
48 help: explicitly ignore the parameter name
50 LL | fn foo_with_qualified_path(_: <Bar as T>::Baz);
53 error: expected one of `(`, `...`, `..=`, `..`, `::`, `:`, `{`, or `|`, found `)`
54 --> $DIR/anon-params-denied-2018.rs:15:56
56 LL | fn foo_with_qualified_path_and_ref(&<Bar as T>::Baz);
57 | ^ expected one of 8 possible tokens
59 = note: anonymous parameters are removed in the 2018 edition (see RFC 1685)
60 help: explicitly ignore the parameter name
62 LL | fn foo_with_qualified_path_and_ref(_: &<Bar as T>::Baz);
65 error: expected one of `(`, `...`, `..=`, `..`, `::`, `:`, `{`, or `|`, found `,`
66 --> $DIR/anon-params-denied-2018.rs:18:57
68 LL | fn foo_with_multiple_qualified_paths(<Bar as T>::Baz, <Bar as T>::Baz);
69 | ^ expected one of 8 possible tokens
71 = note: anonymous parameters are removed in the 2018 edition (see RFC 1685)
72 help: explicitly ignore the parameter name
74 LL | fn foo_with_multiple_qualified_paths(_: <Bar as T>::Baz, <Bar as T>::Baz);
77 error: expected one of `(`, `...`, `..=`, `..`, `::`, `:`, `{`, or `|`, found `)`
78 --> $DIR/anon-params-denied-2018.rs:18:74
80 LL | fn foo_with_multiple_qualified_paths(<Bar as T>::Baz, <Bar as T>::Baz);
81 | ^ expected one of 8 possible tokens
83 = note: anonymous parameters are removed in the 2018 edition (see RFC 1685)
84 help: explicitly ignore the parameter name
86 LL | fn foo_with_multiple_qualified_paths(<Bar as T>::Baz, _: <Bar as T>::Baz);
89 error: expected one of `:`, `@`, or `|`, found `,`
90 --> $DIR/anon-params-denied-2018.rs:22:36
92 LL | fn bar_with_default_impl(String, String) {}
93 | ^ expected one of `:`, `@`, or `|`
95 = note: anonymous parameters are removed in the 2018 edition (see RFC 1685)
96 help: if this is a `self` type, give it a parameter name
98 LL | fn bar_with_default_impl(self: String, String) {}
100 help: if this is a parameter name, give it a type
102 LL | fn bar_with_default_impl(String: TypeName, String) {}
104 help: if this is a type, explicitly ignore the parameter name
106 LL | fn bar_with_default_impl(_: String, String) {}
109 error: expected one of `:`, `@`, or `|`, found `)`
110 --> $DIR/anon-params-denied-2018.rs:22:44
112 LL | fn bar_with_default_impl(String, String) {}
113 | ^ expected one of `:`, `@`, or `|`
115 = note: anonymous parameters are removed in the 2018 edition (see RFC 1685)
116 help: if this is a parameter name, give it a type
118 LL | fn bar_with_default_impl(String, String: TypeName) {}
120 help: if this is a type, explicitly ignore the parameter name
122 LL | fn bar_with_default_impl(String, _: String) {}
125 error: expected one of `:`, `@`, or `|`, found `,`
126 --> $DIR/anon-params-denied-2018.rs:27:22
128 LL | fn baz(a:usize, b, c: usize) -> usize {
129 | ^ expected one of `:`, `@`, or `|`
131 = note: anonymous parameters are removed in the 2018 edition (see RFC 1685)
132 help: if this is a parameter name, give it a type
134 LL | fn baz(a:usize, b: TypeName, c: usize) -> usize {
136 help: if this is a type, explicitly ignore the parameter name
138 LL | fn baz(a:usize, _: b, c: usize) -> usize {
141 error: aborting due to 9 previous errors