@@ -60,11 +60,8 @@ fn FW3<T>() where T: Iterator<Item: 'static, Item: 'static> {}
60
60
//~^ ERROR the value of the associated type `Item` (from trait `Iterator`) is already specified [E0719]
61
61
62
62
fn 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]
64
63
fn 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]
66
64
fn 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]
68
65
fn FAPIT1 ( _: impl Iterator < Item : Copy , Item : Send > ) { }
69
66
//~^ ERROR the value of the associated type `Item` (from trait `Iterator`) is already specified [E0719]
70
67
fn FAPIT2 ( _: impl Iterator < Item : Copy , Item : Copy > ) { }
@@ -107,28 +104,16 @@ type TAW3<T> where T: Iterator<Item: 'static, Item: 'static> = T;
107
104
108
105
type ETAI1 < T : Iterator < Item : Copy , Item : Send > > = impl Copy ;
109
106
//~^ ERROR the value of the associated type `Item` (from trait `Iterator`) is already specified [E0719]
110
- //~| ERROR could not find defining uses
111
107
type ETAI2 < T : Iterator < Item : Copy , Item : Copy > > = impl Copy ;
112
108
//~^ ERROR the value of the associated type `Item` (from trait `Iterator`) is already specified [E0719]
113
- //~| ERROR could not find defining uses
114
109
type ETAI3 < T : Iterator < Item : ' static , Item : ' static > > = impl Copy ;
115
110
//~^ ERROR the value of the associated type `Item` (from trait `Iterator`) is already specified [E0719]
116
- //~| ERROR could not find defining uses
117
111
type ETAI4 = impl Iterator < Item : Copy , Item : Send > ;
118
112
//~^ 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
122
113
type ETAI5 = impl Iterator < Item : Copy , Item : Copy > ;
123
114
//~^ 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
127
115
type ETAI6 = impl Iterator < Item : ' static , Item : ' static > ;
128
116
//~^ 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
132
117
133
118
trait TRI1 < T : Iterator < Item : Copy , Item : Send > > { }
134
119
//~^ 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>; }
166
151
167
152
type TADyn1 = dyn Iterator < Item : Copy , Item : Send > ;
168
153
//~^ 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
171
154
type TADyn2 = Box < dyn Iterator < Item : Copy , Item : Copy > > ;
172
155
//~^ 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
175
156
type TADyn3 = dyn Iterator < Item : ' static , Item : ' static > ;
176
157
//~^ 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
179
158
180
159
fn main ( ) { }
0 commit comments