@@ -38,8 +38,24 @@ help: if this is a type, explicitly ignore the parameter name
38
38
LL | fn foo_with_ref(_: &mut i32);
39
39
| ^^^^^^^^^^^
40
40
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
+
41
57
error: expected one of `:`, `@`, or `|`, found `,`
42
- --> $DIR/anon-params-denied-2018.rs:12 :36
58
+ --> $DIR/anon-params-denied-2018.rs:18 :36
43
59
|
44
60
LL | fn bar_with_default_impl(String, String) {}
45
61
| ^ expected one of `:`, `@`, or `|`
@@ -59,7 +75,7 @@ LL | fn bar_with_default_impl(_: String, String) {}
59
75
| ^^^^^^^^^
60
76
61
77
error: expected one of `:`, `@`, or `|`, found `)`
62
- --> $DIR/anon-params-denied-2018.rs:12 :44
78
+ --> $DIR/anon-params-denied-2018.rs:18 :44
63
79
|
64
80
LL | fn bar_with_default_impl(String, String) {}
65
81
| ^ expected one of `:`, `@`, or `|`
@@ -75,7 +91,7 @@ LL | fn bar_with_default_impl(String, _: String) {}
75
91
| ^^^^^^^^^
76
92
77
93
error: expected one of `:`, `@`, or `|`, found `,`
78
- --> $DIR/anon-params-denied-2018.rs:17 :22
94
+ --> $DIR/anon-params-denied-2018.rs:23 :22
79
95
|
80
96
LL | fn baz(a:usize, b, c: usize) -> usize {
81
97
| ^ expected one of `:`, `@`, or `|`
@@ -90,5 +106,5 @@ help: if this is a type, explicitly ignore the parameter name
90
106
LL | fn baz(a:usize, _: b, c: usize) -> usize {
91
107
| ^^^^
92
108
93
- error: aborting due to 5 previous errors
109
+ error: aborting due to 7 previous errors
94
110
0 commit comments