@@ -134,14 +134,17 @@ where
134134fn FRPIT1 ( ) -> impl Iterator < Item : Copy , Item : Send > {
135135 //~^ ERROR the value of the associated type `Item` in trait `Iterator` is already specified [E0719]
136136 iter:: empty ( )
137+ //~^ ERROR type annotations needed
137138}
138139fn FRPIT2 ( ) -> impl Iterator < Item : Copy , Item : Copy > {
139140 //~^ ERROR the value of the associated type `Item` in trait `Iterator` is already specified [E0719]
140141 iter:: empty ( )
142+ //~^ ERROR type annotations needed
141143}
142144fn FRPIT3 ( ) -> impl Iterator < Item : ' static , Item : ' static > {
143145 //~^ ERROR the value of the associated type `Item` in trait `Iterator` is already specified [E0719]
144146 iter:: empty ( )
147+ //~^ ERROR type annotations needed
145148}
146149fn FAPIT1 ( _: impl Iterator < Item : Copy , Item : Send > ) { }
147150//~^ 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>> {}
194197trait TRS1 : Iterator < Item : Copy , Item : Send > { }
195198//~^ ERROR the value of the associated type `Item` in trait `Iterator` is already specified [E0719]
196199//~| 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]
197201trait TRS2 : Iterator < Item : Copy , Item : Copy > { }
198202//~^ ERROR the value of the associated type `Item` in trait `Iterator` is already specified [E0719]
199203//~| 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]
200205trait TRS3 : Iterator < Item : ' static , Item : ' static > { }
201206//~^ ERROR the value of the associated type `Item` in trait `Iterator` is already specified [E0719]
202207//~| 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]
203209trait TRW1 < T >
204210where
205211 T : Iterator < Item : Copy , Item : Send > ,
@@ -223,29 +229,35 @@ where
223229 Self : Iterator < Item : Copy , Item : Send > ,
224230 //~^ ERROR the value of the associated type `Item` in trait `Iterator` is already specified [E0719]
225231 //~| 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]
226233{
227234}
228235trait TRSW2
229236where
230237 Self : Iterator < Item : Copy , Item : Copy > ,
231238 //~^ ERROR the value of the associated type `Item` in trait `Iterator` is already specified [E0719]
232239 //~| 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]
233241{
234242}
235243trait TRSW3
236244where
237245 Self : Iterator < Item : ' static , Item : ' static > ,
238246 //~^ ERROR the value of the associated type `Item` in trait `Iterator` is already specified [E0719]
239247 //~| 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]
240249{
241250}
242251trait TRA1 {
243252 type A : Iterator < Item : Copy , Item : Send > ;
244253 //~^ 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
245256}
246257trait TRA2 {
247258 type A : Iterator < Item : Copy , Item : Copy > ;
248259 //~^ 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
249261}
250262trait TRA3 {
251263 type A : Iterator < Item : ' static , Item : ' static > ;
0 commit comments