@@ -81,7 +81,7 @@ error[E0223]: ambiguous associated type
81
81
LL | type D = (u8, u8)::AssocTy;
82
82
| ^^^^^^^^^^^^^^^^^ help: use fully-qualified syntax: `<(u8, u8) as Trait>::AssocTy`
83
83
84
- error[E0121]: the type placeholder `_` is not allowed within types on item signatures
84
+ error[E0121]: the type placeholder `_` is not allowed within types on item signatures for type aliases
85
85
--> $DIR/bad-assoc-ty.rs:17:10
86
86
|
87
87
LL | type E = _::AssocTy;
@@ -122,7 +122,7 @@ error[E0223]: ambiguous associated type
122
122
LL | type I = ty!()::AssocTy;
123
123
| ^^^^^^^^^^^^^^ help: use fully-qualified syntax: `<u8 as Trait>::AssocTy`
124
124
125
- error[E0121]: the type placeholder `_` is not allowed within types on item signatures
125
+ error[E0121]: the type placeholder `_` is not allowed within types on item signatures for functions
126
126
--> $DIR/bad-assoc-ty.rs:49:13
127
127
|
128
128
LL | fn foo<X: K<_, _>>(x: X) {}
@@ -135,7 +135,7 @@ help: use type parameters instead
135
135
LL | fn foo<X: K<T, T>, T>(x: X) {}
136
136
| ^ ^ ^^^
137
137
138
- error[E0121]: the type placeholder `_` is not allowed within types on item signatures
138
+ error[E0121]: the type placeholder `_` is not allowed within types on item signatures for functions
139
139
--> $DIR/bad-assoc-ty.rs:52:34
140
140
|
141
141
LL | fn bar<F>(_: F) where F: Fn() -> _ {}
@@ -146,7 +146,7 @@ help: use type parameters instead
146
146
LL | fn bar<F, T>(_: F) where F: Fn() -> T {}
147
147
| ^^^ ^
148
148
149
- error[E0121]: the type placeholder `_` is not allowed within types on item signatures
149
+ error[E0121]: the type placeholder `_` is not allowed within types on item signatures for functions
150
150
--> $DIR/bad-assoc-ty.rs:55:19
151
151
|
152
152
LL | fn baz<F: Fn() -> _>(_: F) {}
@@ -157,7 +157,7 @@ help: use type parameters instead
157
157
LL | fn baz<F: Fn() -> T, T>(_: F) {}
158
158
| ^^^^
159
159
160
- error[E0121]: the type placeholder `_` is not allowed within types on item signatures
160
+ error[E0121]: the type placeholder `_` is not allowed within types on item signatures for structs
161
161
--> $DIR/bad-assoc-ty.rs:58:33
162
162
|
163
163
LL | struct L<F>(F) where F: Fn() -> _;
@@ -168,7 +168,7 @@ help: use type parameters instead
168
168
LL | struct L<F, T>(F) where F: Fn() -> T;
169
169
| ^^^ ^
170
170
171
- error[E0121]: the type placeholder `_` is not allowed within types on item signatures
171
+ error[E0121]: the type placeholder `_` is not allowed within types on item signatures for structs
172
172
--> $DIR/bad-assoc-ty.rs:60:30
173
173
|
174
174
LL | struct M<F> where F: Fn() -> _ {
@@ -179,7 +179,7 @@ help: use type parameters instead
179
179
LL | struct M<F, T> where F: Fn() -> T {
180
180
| ^^^ ^
181
181
182
- error[E0121]: the type placeholder `_` is not allowed within types on item signatures
182
+ error[E0121]: the type placeholder `_` is not allowed within types on item signatures for enums
183
183
--> $DIR/bad-assoc-ty.rs:64:28
184
184
|
185
185
LL | enum N<F> where F: Fn() -> _ {
@@ -190,7 +190,7 @@ help: use type parameters instead
190
190
LL | enum N<F, T> where F: Fn() -> T {
191
191
| ^^^ ^
192
192
193
- error[E0121]: the type placeholder `_` is not allowed within types on item signatures
193
+ error[E0121]: the type placeholder `_` is not allowed within types on item signatures for unions
194
194
--> $DIR/bad-assoc-ty.rs:69:29
195
195
|
196
196
LL | union O<F> where F: Fn() -> _ {
@@ -201,7 +201,7 @@ help: use type parameters instead
201
201
LL | union O<F, T> where F: Fn() -> T {
202
202
| ^^^ ^
203
203
204
- error[E0121]: the type placeholder `_` is not allowed within types on item signatures
204
+ error[E0121]: the type placeholder `_` is not allowed within types on item signatures for traits
205
205
--> $DIR/bad-assoc-ty.rs:74:29
206
206
|
207
207
LL | trait P<F> where F: Fn() -> _ {
@@ -212,7 +212,7 @@ help: use type parameters instead
212
212
LL | trait P<F, T> where F: Fn() -> T {
213
213
| ^^^ ^
214
214
215
- error[E0121]: the type placeholder `_` is not allowed within types on item signatures
215
+ error[E0121]: the type placeholder `_` is not allowed within types on item signatures for functions
216
216
--> $DIR/bad-assoc-ty.rs:79:38
217
217
|
218
218
LL | fn foo<F>(_: F) where F: Fn() -> _ {}
0 commit comments