@@ -81,7 +81,7 @@ error[E0223]: ambiguous associated type
8181LL | type D = (u8, u8)::AssocTy;
8282 | ^^^^^^^^^^^^^^^^^ help: use fully-qualified syntax: `<(u8, u8) as Trait>::AssocTy`
8383
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
8585 --> $DIR/bad-assoc-ty.rs:17:10
8686 |
8787LL | type E = _::AssocTy;
@@ -122,7 +122,7 @@ error[E0223]: ambiguous associated type
122122LL | type I = ty!()::AssocTy;
123123 | ^^^^^^^^^^^^^^ help: use fully-qualified syntax: `<u8 as Trait>::AssocTy`
124124
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
126126 --> $DIR/bad-assoc-ty.rs:49:13
127127 |
128128LL | fn foo<X: K<_, _>>(x: X) {}
@@ -135,7 +135,7 @@ help: use type parameters instead
135135LL | fn foo<X: K<T, T>, T>(x: X) {}
136136 | ^ ^ ^^^
137137
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
139139 --> $DIR/bad-assoc-ty.rs:52:34
140140 |
141141LL | fn bar<F>(_: F) where F: Fn() -> _ {}
@@ -146,7 +146,7 @@ help: use type parameters instead
146146LL | fn bar<F, T>(_: F) where F: Fn() -> T {}
147147 | ^^^ ^
148148
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
150150 --> $DIR/bad-assoc-ty.rs:55:19
151151 |
152152LL | fn baz<F: Fn() -> _>(_: F) {}
@@ -157,7 +157,7 @@ help: use type parameters instead
157157LL | fn baz<F: Fn() -> T, T>(_: F) {}
158158 | ^^^^
159159
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
161161 --> $DIR/bad-assoc-ty.rs:58:33
162162 |
163163LL | struct L<F>(F) where F: Fn() -> _;
@@ -168,7 +168,7 @@ help: use type parameters instead
168168LL | struct L<F, T>(F) where F: Fn() -> T;
169169 | ^^^ ^
170170
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
172172 --> $DIR/bad-assoc-ty.rs:60:30
173173 |
174174LL | struct M<F> where F: Fn() -> _ {
@@ -179,7 +179,7 @@ help: use type parameters instead
179179LL | struct M<F, T> where F: Fn() -> T {
180180 | ^^^ ^
181181
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
183183 --> $DIR/bad-assoc-ty.rs:64:28
184184 |
185185LL | enum N<F> where F: Fn() -> _ {
@@ -190,7 +190,7 @@ help: use type parameters instead
190190LL | enum N<F, T> where F: Fn() -> T {
191191 | ^^^ ^
192192
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
194194 --> $DIR/bad-assoc-ty.rs:69:29
195195 |
196196LL | union O<F> where F: Fn() -> _ {
@@ -201,7 +201,7 @@ help: use type parameters instead
201201LL | union O<F, T> where F: Fn() -> T {
202202 | ^^^ ^
203203
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
205205 --> $DIR/bad-assoc-ty.rs:74:29
206206 |
207207LL | trait P<F> where F: Fn() -> _ {
@@ -212,7 +212,7 @@ help: use type parameters instead
212212LL | trait P<F, T> where F: Fn() -> T {
213213 | ^^^ ^
214214
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
216216 --> $DIR/bad-assoc-ty.rs:79:38
217217 |
218218LL | fn foo<F>(_: F) where F: Fn() -> _ {}
0 commit comments