@@ -60,11 +60,8 @@ fn FW3<T>() where T: Iterator<Item: 'static, Item: 'static> {}
6060//~^ ERROR the value of the associated type `Item` (from trait `Iterator`) is already specified [E0719]
6161
6262fn FRPIT1 ( ) -> impl Iterator < Item : Copy , Item : Send > { iter:: empty ( ) }
63- //~^ ERROR the value of the associated type `Item` (from trait `Iterator`) is already specified [E0719]
6463fn FRPIT2 ( ) -> impl Iterator < Item : Copy , Item : Copy > { iter:: empty ( ) }
65- //~^ ERROR the value of the associated type `Item` (from trait `Iterator`) is already specified [E0719]
6664fn FRPIT3 ( ) -> impl Iterator < Item : ' static , Item : ' static > { iter:: empty ( ) }
67- //~^ ERROR the value of the associated type `Item` (from trait `Iterator`) is already specified [E0719]
6865fn FAPIT1 ( _: impl Iterator < Item : Copy , Item : Send > ) { }
6966//~^ ERROR the value of the associated type `Item` (from trait `Iterator`) is already specified [E0719]
7067fn FAPIT2 ( _: impl Iterator < Item : Copy , Item : Copy > ) { }
@@ -107,28 +104,16 @@ type TAW3<T> where T: Iterator<Item: 'static, Item: 'static> = T;
107104
108105type ETAI1 < T : Iterator < Item : Copy , Item : Send > > = impl Copy ;
109106//~^ ERROR the value of the associated type `Item` (from trait `Iterator`) is already specified [E0719]
110- //~| ERROR could not find defining uses
111107type ETAI2 < T : Iterator < Item : Copy , Item : Copy > > = impl Copy ;
112108//~^ ERROR the value of the associated type `Item` (from trait `Iterator`) is already specified [E0719]
113- //~| ERROR could not find defining uses
114109type ETAI3 < T : Iterator < Item : ' static , Item : ' static > > = impl Copy ;
115110//~^ ERROR the value of the associated type `Item` (from trait `Iterator`) is already specified [E0719]
116- //~| ERROR could not find defining uses
117111type ETAI4 = impl Iterator < Item : Copy , Item : Send > ;
118112//~^ ERROR the value of the associated type `Item` (from trait `Iterator`) is already specified [E0719]
119- //~| ERROR could not find defining uses
120- //~| ERROR could not find defining uses
121- //~| ERROR could not find defining uses
122113type ETAI5 = impl Iterator < Item : Copy , Item : Copy > ;
123114//~^ ERROR the value of the associated type `Item` (from trait `Iterator`) is already specified [E0719]
124- //~| ERROR could not find defining uses
125- //~| ERROR could not find defining uses
126- //~| ERROR could not find defining uses
127115type ETAI6 = impl Iterator < Item : ' static , Item : ' static > ;
128116//~^ ERROR the value of the associated type `Item` (from trait `Iterator`) is already specified [E0719]
129- //~| ERROR could not find defining uses
130- //~| ERROR could not find defining uses
131- //~| ERROR could not find defining uses
132117
133118trait TRI1 < T : Iterator < Item : Copy , Item : Send > > { }
134119//~^ ERROR the value of the associated type `Item` (from trait `Iterator`) is already specified [E0719]
@@ -166,15 +151,9 @@ trait TRA3 { type A: Iterator<Item: 'static, Item: 'static>; }
166151
167152type TADyn1 = dyn Iterator < Item : Copy , Item : Send > ;
168153//~^ ERROR the value of the associated type `Item` (from trait `Iterator`) is already specified [E0719]
169- //~| ERROR could not find defining uses
170- //~| ERROR could not find defining uses
171154type TADyn2 = Box < dyn Iterator < Item : Copy , Item : Copy > > ;
172155//~^ ERROR the value of the associated type `Item` (from trait `Iterator`) is already specified [E0719]
173- //~| ERROR could not find defining uses
174- //~| ERROR could not find defining uses
175156type TADyn3 = dyn Iterator < Item : ' static , Item : ' static > ;
176157//~^ ERROR the value of the associated type `Item` (from trait `Iterator`) is already specified [E0719]
177- //~| ERROR could not find defining uses
178- //~| ERROR could not find defining uses
179158
180159fn main ( ) { }
0 commit comments