@@ -62,8 +62,32 @@ help: explicitly ignore the parameter name
62
62
LL | fn foo_with_qualified_path_and_ref(_: &<Bar as T>::Baz);
63
63
| ^^^^^^^^^^^^^^^^^^^
64
64
65
+ error: expected one of `(`, `...`, `..=`, `..`, `::`, `:`, `{`, or `|`, found `,`
66
+ --> $DIR/anon-params-denied-2018.rs:18:57
67
+ |
68
+ LL | fn foo_with_multiple_qualified_paths(<Bar as T>::Baz, <Bar as T>::Baz);
69
+ | ^ expected one of 8 possible tokens
70
+ |
71
+ = note: anonymous parameters are removed in the 2018 edition (see RFC 1685)
72
+ help: explicitly ignore the parameter name
73
+ |
74
+ LL | fn foo_with_multiple_qualified_paths(_: <Bar as T>::Baz, <Bar as T>::Baz);
75
+ | ^^^^^^^^^^^^^^^^^^
76
+
77
+ error: expected one of `(`, `...`, `..=`, `..`, `::`, `:`, `{`, or `|`, found `)`
78
+ --> $DIR/anon-params-denied-2018.rs:18:74
79
+ |
80
+ LL | fn foo_with_multiple_qualified_paths(<Bar as T>::Baz, <Bar as T>::Baz);
81
+ | ^ expected one of 8 possible tokens
82
+ |
83
+ = note: anonymous parameters are removed in the 2018 edition (see RFC 1685)
84
+ help: explicitly ignore the parameter name
85
+ |
86
+ LL | fn foo_with_multiple_qualified_paths(<Bar as T>::Baz, _: <Bar as T>::Baz);
87
+ | ^^^^^^^^^^^^^^^^^^
88
+
65
89
error: expected one of `:`, `@`, or `|`, found `,`
66
- --> $DIR/anon-params-denied-2018.rs:18 :36
90
+ --> $DIR/anon-params-denied-2018.rs:22 :36
67
91
|
68
92
LL | fn bar_with_default_impl(String, String) {}
69
93
| ^ expected one of `:`, `@`, or `|`
@@ -83,7 +107,7 @@ LL | fn bar_with_default_impl(_: String, String) {}
83
107
| ^^^^^^^^^
84
108
85
109
error: expected one of `:`, `@`, or `|`, found `)`
86
- --> $DIR/anon-params-denied-2018.rs:18 :44
110
+ --> $DIR/anon-params-denied-2018.rs:22 :44
87
111
|
88
112
LL | fn bar_with_default_impl(String, String) {}
89
113
| ^ expected one of `:`, `@`, or `|`
@@ -99,7 +123,7 @@ LL | fn bar_with_default_impl(String, _: String) {}
99
123
| ^^^^^^^^^
100
124
101
125
error: expected one of `:`, `@`, or `|`, found `,`
102
- --> $DIR/anon-params-denied-2018.rs:23 :22
126
+ --> $DIR/anon-params-denied-2018.rs:27 :22
103
127
|
104
128
LL | fn baz(a:usize, b, c: usize) -> usize {
105
129
| ^ expected one of `:`, `@`, or `|`
@@ -114,5 +138,5 @@ help: if this is a type, explicitly ignore the parameter name
114
138
LL | fn baz(a:usize, _: b, c: usize) -> usize {
115
139
| ^^^^
116
140
117
- error: aborting due to 7 previous errors
141
+ error: aborting due to 9 previous errors
118
142
0 commit comments