@@ -38,8 +38,24 @@ help: if this is a type, explicitly ignore the parameter name
3838LL | fn foo_with_ref(_: &mut i32);
3939 | ^^^^^^^^^^^
4040
41+ error: expected one of `(`, `...`, `..=`, `..`, `::`, `:`, `{`, or `|`, found `)`
42+ --> $DIR/anon-params-denied-2018.rs:12:47
43+ |
44+ LL | fn foo_with_qualified_path(<Bar as T>::Baz);
45+ | ^ expected one of 8 possible tokens
46+ |
47+ = note: anonymous parameters are removed in the 2018 edition (see RFC 1685)
48+
49+ error: expected one of `(`, `...`, `..=`, `..`, `::`, `:`, `{`, or `|`, found `)`
50+ --> $DIR/anon-params-denied-2018.rs:15:56
51+ |
52+ LL | fn foo_with_qualified_path_and_ref(&<Bar as T>::Baz);
53+ | ^ expected one of 8 possible tokens
54+ |
55+ = note: anonymous parameters are removed in the 2018 edition (see RFC 1685)
56+
4157error: expected one of `:`, `@`, or `|`, found `,`
42- --> $DIR/anon-params-denied-2018.rs:12 :36
58+ --> $DIR/anon-params-denied-2018.rs:18 :36
4359 |
4460LL | fn bar_with_default_impl(String, String) {}
4561 | ^ expected one of `:`, `@`, or `|`
@@ -59,7 +75,7 @@ LL | fn bar_with_default_impl(_: String, String) {}
5975 | ^^^^^^^^^
6076
6177error: expected one of `:`, `@`, or `|`, found `)`
62- --> $DIR/anon-params-denied-2018.rs:12 :44
78+ --> $DIR/anon-params-denied-2018.rs:18 :44
6379 |
6480LL | fn bar_with_default_impl(String, String) {}
6581 | ^ expected one of `:`, `@`, or `|`
@@ -75,7 +91,7 @@ LL | fn bar_with_default_impl(String, _: String) {}
7591 | ^^^^^^^^^
7692
7793error: expected one of `:`, `@`, or `|`, found `,`
78- --> $DIR/anon-params-denied-2018.rs:17 :22
94+ --> $DIR/anon-params-denied-2018.rs:23 :22
7995 |
8096LL | fn baz(a:usize, b, c: usize) -> usize {
8197 | ^ expected one of `:`, `@`, or `|`
@@ -90,5 +106,5 @@ help: if this is a type, explicitly ignore the parameter name
90106LL | fn baz(a:usize, _: b, c: usize) -> usize {
91107 | ^^^^
92108
93- error: aborting due to 5 previous errors
109+ error: aborting due to 7 previous errors
94110
0 commit comments