@@ -134,14 +134,17 @@ where
134
134
fn FRPIT1 ( ) -> impl Iterator < Item : Copy , Item : Send > {
135
135
//~^ ERROR the value of the associated type `Item` in trait `Iterator` is already specified [E0719]
136
136
iter:: empty ( )
137
+ //~^ ERROR type annotations needed
137
138
}
138
139
fn FRPIT2 ( ) -> impl Iterator < Item : Copy , Item : Copy > {
139
140
//~^ ERROR the value of the associated type `Item` in trait `Iterator` is already specified [E0719]
140
141
iter:: empty ( )
142
+ //~^ ERROR type annotations needed
141
143
}
142
144
fn FRPIT3 ( ) -> impl Iterator < Item : ' static , Item : ' static > {
143
145
//~^ ERROR the value of the associated type `Item` in trait `Iterator` is already specified [E0719]
144
146
iter:: empty ( )
147
+ //~^ ERROR type annotations needed
145
148
}
146
149
fn FAPIT1 ( _: impl Iterator < Item : Copy , Item : Send > ) { }
147
150
//~^ ERROR the value of the associated type `Item` in trait `Iterator` is already specified [E0719]
@@ -194,12 +197,15 @@ trait TRI3<T: Iterator<Item: 'static, Item: 'static>> {}
194
197
trait TRS1 : Iterator < Item : Copy , Item : Send > { }
195
198
//~^ ERROR the value of the associated type `Item` in trait `Iterator` is already specified [E0719]
196
199
//~| ERROR the value of the associated type `Item` in trait `Iterator` is already specified [E0719]
200
+ //~| ERROR the value of the associated type `Item` in trait `Iterator` is already specified [E0719]
197
201
trait TRS2 : Iterator < Item : Copy , Item : Copy > { }
198
202
//~^ ERROR the value of the associated type `Item` in trait `Iterator` is already specified [E0719]
199
203
//~| ERROR the value of the associated type `Item` in trait `Iterator` is already specified [E0719]
204
+ //~| ERROR the value of the associated type `Item` in trait `Iterator` is already specified [E0719]
200
205
trait TRS3 : Iterator < Item : ' static , Item : ' static > { }
201
206
//~^ ERROR the value of the associated type `Item` in trait `Iterator` is already specified [E0719]
202
207
//~| ERROR the value of the associated type `Item` in trait `Iterator` is already specified [E0719]
208
+ //~| ERROR the value of the associated type `Item` in trait `Iterator` is already specified [E0719]
203
209
trait TRW1 < T >
204
210
where
205
211
T : Iterator < Item : Copy , Item : Send > ,
@@ -223,29 +229,35 @@ where
223
229
Self : Iterator < Item : Copy , Item : Send > ,
224
230
//~^ ERROR the value of the associated type `Item` in trait `Iterator` is already specified [E0719]
225
231
//~| ERROR the value of the associated type `Item` in trait `Iterator` is already specified [E0719]
232
+ //~| ERROR the value of the associated type `Item` in trait `Iterator` is already specified [E0719]
226
233
{
227
234
}
228
235
trait TRSW2
229
236
where
230
237
Self : Iterator < Item : Copy , Item : Copy > ,
231
238
//~^ ERROR the value of the associated type `Item` in trait `Iterator` is already specified [E0719]
232
239
//~| ERROR the value of the associated type `Item` in trait `Iterator` is already specified [E0719]
240
+ //~| ERROR the value of the associated type `Item` in trait `Iterator` is already specified [E0719]
233
241
{
234
242
}
235
243
trait TRSW3
236
244
where
237
245
Self : Iterator < Item : ' static , Item : ' static > ,
238
246
//~^ ERROR the value of the associated type `Item` in trait `Iterator` is already specified [E0719]
239
247
//~| ERROR the value of the associated type `Item` in trait `Iterator` is already specified [E0719]
248
+ //~| ERROR the value of the associated type `Item` in trait `Iterator` is already specified [E0719]
240
249
{
241
250
}
242
251
trait TRA1 {
243
252
type A : Iterator < Item : Copy , Item : Send > ;
244
253
//~^ ERROR the value of the associated type `Item` in trait `Iterator` is already specified [E0719]
254
+ //~| ERROR `<<Self as TRA1>::A as Iterator>::Item` cannot be sent between threads safely
255
+ //~| ERROR the trait bound `<<Self as TRA1>::A as Iterator>::Item: Copy` is not satisfied
245
256
}
246
257
trait TRA2 {
247
258
type A : Iterator < Item : Copy , Item : Copy > ;
248
259
//~^ ERROR the value of the associated type `Item` in trait `Iterator` is already specified [E0719]
260
+ //~| ERROR the trait bound `<<Self as TRA2>::A as Iterator>::Item: Copy` is not satisfied
249
261
}
250
262
trait TRA3 {
251
263
type A : Iterator < Item : ' static , Item : ' static > ;
0 commit comments