1 warning: the feature `impl_trait_in_bindings` is incomplete and may not be safe to use and/or cause compiler crashes
2 --> $DIR/duplicate.rs:8:12
4 LL | #![feature(impl_trait_in_bindings)]
5 | ^^^^^^^^^^^^^^^^^^^^^^
7 = note: `#[warn(incomplete_features)]` on by default
8 = note: see issue #63065 <https://github.com/rust-lang/rust/issues/63065> for more information
10 error[E0719]: the value of the associated type `Item` (from trait `Iterator`) is already specified
11 --> $DIR/duplicate.rs:13:36
13 LL | struct SI1<T: Iterator<Item: Copy, Item: Send>> { f: T }
14 | ---------- ^^^^^^^^^^ re-bound here
16 | `Item` bound here first
18 error[E0719]: the value of the associated type `Item` (from trait `Iterator`) is already specified
19 --> $DIR/duplicate.rs:15:36
21 LL | struct SI2<T: Iterator<Item: Copy, Item: Copy>> { f: T }
22 | ---------- ^^^^^^^^^^ re-bound here
24 | `Item` bound here first
26 error[E0719]: the value of the associated type `Item` (from trait `Iterator`) is already specified
27 --> $DIR/duplicate.rs:17:39
29 LL | struct SI3<T: Iterator<Item: 'static, Item: 'static>> { f: T }
30 | ------------- ^^^^^^^^^^^^^ re-bound here
32 | `Item` bound here first
34 error[E0719]: the value of the associated type `Item` (from trait `Iterator`) is already specified
35 --> $DIR/duplicate.rs:19:45
37 LL | struct SW1<T> where T: Iterator<Item: Copy, Item: Send> { f: T }
38 | ---------- ^^^^^^^^^^ re-bound here
40 | `Item` bound here first
42 error[E0719]: the value of the associated type `Item` (from trait `Iterator`) is already specified
43 --> $DIR/duplicate.rs:21:45
45 LL | struct SW2<T> where T: Iterator<Item: Copy, Item: Copy> { f: T }
46 | ---------- ^^^^^^^^^^ re-bound here
48 | `Item` bound here first
50 error[E0719]: the value of the associated type `Item` (from trait `Iterator`) is already specified
51 --> $DIR/duplicate.rs:23:48
53 LL | struct SW3<T> where T: Iterator<Item: 'static, Item: 'static> { f: T }
54 | ------------- ^^^^^^^^^^^^^ re-bound here
56 | `Item` bound here first
58 error[E0719]: the value of the associated type `Item` (from trait `Iterator`) is already specified
59 --> $DIR/duplicate.rs:26:34
61 LL | enum EI1<T: Iterator<Item: Copy, Item: Send>> { V(T) }
62 | ---------- ^^^^^^^^^^ re-bound here
64 | `Item` bound here first
66 error[E0719]: the value of the associated type `Item` (from trait `Iterator`) is already specified
67 --> $DIR/duplicate.rs:28:34
69 LL | enum EI2<T: Iterator<Item: Copy, Item: Copy>> { V(T) }
70 | ---------- ^^^^^^^^^^ re-bound here
72 | `Item` bound here first
74 error[E0719]: the value of the associated type `Item` (from trait `Iterator`) is already specified
75 --> $DIR/duplicate.rs:30:37
77 LL | enum EI3<T: Iterator<Item: 'static, Item: 'static>> { V(T) }
78 | ------------- ^^^^^^^^^^^^^ re-bound here
80 | `Item` bound here first
82 error[E0719]: the value of the associated type `Item` (from trait `Iterator`) is already specified
83 --> $DIR/duplicate.rs:32:43
85 LL | enum EW1<T> where T: Iterator<Item: Copy, Item: Send> { V(T) }
86 | ---------- ^^^^^^^^^^ re-bound here
88 | `Item` bound here first
90 error[E0719]: the value of the associated type `Item` (from trait `Iterator`) is already specified
91 --> $DIR/duplicate.rs:34:43
93 LL | enum EW2<T> where T: Iterator<Item: Copy, Item: Copy> { V(T) }
94 | ---------- ^^^^^^^^^^ re-bound here
96 | `Item` bound here first
98 error[E0719]: the value of the associated type `Item` (from trait `Iterator`) is already specified
99 --> $DIR/duplicate.rs:36:46
101 LL | enum EW3<T> where T: Iterator<Item: 'static, Item: 'static> { V(T) }
102 | ------------- ^^^^^^^^^^^^^ re-bound here
104 | `Item` bound here first
106 error[E0719]: the value of the associated type `Item` (from trait `Iterator`) is already specified
107 --> $DIR/duplicate.rs:39:35
109 LL | union UI1<T: Iterator<Item: Copy, Item: Send>> { f: T }
110 | ---------- ^^^^^^^^^^ re-bound here
112 | `Item` bound here first
114 error[E0719]: the value of the associated type `Item` (from trait `Iterator`) is already specified
115 --> $DIR/duplicate.rs:41:35
117 LL | union UI2<T: Iterator<Item: Copy, Item: Copy>> { f: T }
118 | ---------- ^^^^^^^^^^ re-bound here
120 | `Item` bound here first
122 error[E0719]: the value of the associated type `Item` (from trait `Iterator`) is already specified
123 --> $DIR/duplicate.rs:43:38
125 LL | union UI3<T: Iterator<Item: 'static, Item: 'static>> { f: T }
126 | ------------- ^^^^^^^^^^^^^ re-bound here
128 | `Item` bound here first
130 error[E0719]: the value of the associated type `Item` (from trait `Iterator`) is already specified
131 --> $DIR/duplicate.rs:45:44
133 LL | union UW1<T> where T: Iterator<Item: Copy, Item: Send> { f: T }
134 | ---------- ^^^^^^^^^^ re-bound here
136 | `Item` bound here first
138 error[E0719]: the value of the associated type `Item` (from trait `Iterator`) is already specified
139 --> $DIR/duplicate.rs:47:44
141 LL | union UW2<T> where T: Iterator<Item: Copy, Item: Copy> { f: T }
142 | ---------- ^^^^^^^^^^ re-bound here
144 | `Item` bound here first
146 error[E0719]: the value of the associated type `Item` (from trait `Iterator`) is already specified
147 --> $DIR/duplicate.rs:49:47
149 LL | union UW3<T> where T: Iterator<Item: 'static, Item: 'static> { f: T }
150 | ------------- ^^^^^^^^^^^^^ re-bound here
152 | `Item` bound here first
154 error[E0719]: the value of the associated type `Item` (from trait `Iterator`) is already specified
155 --> $DIR/duplicate.rs:52:32
157 LL | fn FI1<T: Iterator<Item: Copy, Item: Send>>() {}
158 | ---------- ^^^^^^^^^^ re-bound here
160 | `Item` bound here first
162 error[E0719]: the value of the associated type `Item` (from trait `Iterator`) is already specified
163 --> $DIR/duplicate.rs:54:32
165 LL | fn FI2<T: Iterator<Item: Copy, Item: Copy>>() {}
166 | ---------- ^^^^^^^^^^ re-bound here
168 | `Item` bound here first
170 error[E0719]: the value of the associated type `Item` (from trait `Iterator`) is already specified
171 --> $DIR/duplicate.rs:56:35
173 LL | fn FI3<T: Iterator<Item: 'static, Item: 'static>>() {}
174 | ------------- ^^^^^^^^^^^^^ re-bound here
176 | `Item` bound here first
178 error[E0719]: the value of the associated type `Item` (from trait `Iterator`) is already specified
179 --> $DIR/duplicate.rs:58:43
181 LL | fn FW1<T>() where T: Iterator<Item: Copy, Item: Send> {}
182 | ---------- ^^^^^^^^^^ re-bound here
184 | `Item` bound here first
186 error[E0719]: the value of the associated type `Item` (from trait `Iterator`) is already specified
187 --> $DIR/duplicate.rs:60:43
189 LL | fn FW2<T>() where T: Iterator<Item: Copy, Item: Copy> {}
190 | ---------- ^^^^^^^^^^ re-bound here
192 | `Item` bound here first
194 error[E0719]: the value of the associated type `Item` (from trait `Iterator`) is already specified
195 --> $DIR/duplicate.rs:62:46
197 LL | fn FW3<T>() where T: Iterator<Item: 'static, Item: 'static> {}
198 | ------------- ^^^^^^^^^^^^^ re-bound here
200 | `Item` bound here first
202 error[E0719]: the value of the associated type `Item` (from trait `Iterator`) is already specified
203 --> $DIR/duplicate.rs:68:40
205 LL | fn FAPIT1(_: impl Iterator<Item: Copy, Item: Send>) {}
206 | ---------- ^^^^^^^^^^ re-bound here
208 | `Item` bound here first
210 error[E0719]: the value of the associated type `Item` (from trait `Iterator`) is already specified
211 --> $DIR/duplicate.rs:70:40
213 LL | fn FAPIT2(_: impl Iterator<Item: Copy, Item: Copy>) {}
214 | ---------- ^^^^^^^^^^ re-bound here
216 | `Item` bound here first
218 error[E0719]: the value of the associated type `Item` (from trait `Iterator`) is already specified
219 --> $DIR/duplicate.rs:72:43
221 LL | fn FAPIT3(_: impl Iterator<Item: 'static, Item: 'static>) {}
222 | ------------- ^^^^^^^^^^^^^ re-bound here
224 | `Item` bound here first
226 error[E0719]: the value of the associated type `Item` (from trait `Iterator`) is already specified
227 --> $DIR/duplicate.rs:75:39
229 LL | const CIT1: impl Iterator<Item: Copy, Item: Send> = iter::empty();
230 | ---------- ^^^^^^^^^^ re-bound here
232 | `Item` bound here first
234 error[E0719]: the value of the associated type `Item` (from trait `Iterator`) is already specified
235 --> $DIR/duplicate.rs:77:39
237 LL | const CIT2: impl Iterator<Item: Copy, Item: Copy> = iter::empty();
238 | ---------- ^^^^^^^^^^ re-bound here
240 | `Item` bound here first
242 error[E0719]: the value of the associated type `Item` (from trait `Iterator`) is already specified
243 --> $DIR/duplicate.rs:79:42
245 LL | const CIT3: impl Iterator<Item: 'static, Item: 'static> = iter::empty();
246 | ------------- ^^^^^^^^^^^^^ re-bound here
248 | `Item` bound here first
250 error[E0719]: the value of the associated type `Item` (from trait `Iterator`) is already specified
251 --> $DIR/duplicate.rs:81:40
253 LL | static SIT1: impl Iterator<Item: Copy, Item: Send> = iter::empty();
254 | ---------- ^^^^^^^^^^ re-bound here
256 | `Item` bound here first
258 error[E0719]: the value of the associated type `Item` (from trait `Iterator`) is already specified
259 --> $DIR/duplicate.rs:83:40
261 LL | static SIT2: impl Iterator<Item: Copy, Item: Copy> = iter::empty();
262 | ---------- ^^^^^^^^^^ re-bound here
264 | `Item` bound here first
266 error[E0719]: the value of the associated type `Item` (from trait `Iterator`) is already specified
267 --> $DIR/duplicate.rs:85:43
269 LL | static SIT3: impl Iterator<Item: 'static, Item: 'static> = iter::empty();
270 | ------------- ^^^^^^^^^^^^^ re-bound here
272 | `Item` bound here first
274 error[E0719]: the value of the associated type `Item` (from trait `Iterator`) is already specified
275 --> $DIR/duplicate.rs:88:46
277 LL | fn lit1() { let _: impl Iterator<Item: Copy, Item: Send> = iter::empty(); }
278 | ---------- ^^^^^^^^^^ re-bound here
280 | `Item` bound here first
282 error[E0719]: the value of the associated type `Item` (from trait `Iterator`) is already specified
283 --> $DIR/duplicate.rs:90:46
285 LL | fn lit2() { let _: impl Iterator<Item: Copy, Item: Copy> = iter::empty(); }
286 | ---------- ^^^^^^^^^^ re-bound here
288 | `Item` bound here first
290 error[E0719]: the value of the associated type `Item` (from trait `Iterator`) is already specified
291 --> $DIR/duplicate.rs:92:49
293 LL | fn lit3() { let _: impl Iterator<Item: 'static, Item: 'static> = iter::empty(); }
294 | ------------- ^^^^^^^^^^^^^ re-bound here
296 | `Item` bound here first
298 error[E0719]: the value of the associated type `Item` (from trait `Iterator`) is already specified
299 --> $DIR/duplicate.rs:95:35
301 LL | type TAI1<T: Iterator<Item: Copy, Item: Send>> = T;
302 | ---------- ^^^^^^^^^^ re-bound here
304 | `Item` bound here first
306 error[E0719]: the value of the associated type `Item` (from trait `Iterator`) is already specified
307 --> $DIR/duplicate.rs:97:35
309 LL | type TAI2<T: Iterator<Item: Copy, Item: Copy>> = T;
310 | ---------- ^^^^^^^^^^ re-bound here
312 | `Item` bound here first
314 error[E0719]: the value of the associated type `Item` (from trait `Iterator`) is already specified
315 --> $DIR/duplicate.rs:99:38
317 LL | type TAI3<T: Iterator<Item: 'static, Item: 'static>> = T;
318 | ------------- ^^^^^^^^^^^^^ re-bound here
320 | `Item` bound here first
322 error[E0719]: the value of the associated type `Item` (from trait `Iterator`) is already specified
323 --> $DIR/duplicate.rs:101:44
325 LL | type TAW1<T> where T: Iterator<Item: Copy, Item: Send> = T;
326 | ---------- ^^^^^^^^^^ re-bound here
328 | `Item` bound here first
330 error[E0719]: the value of the associated type `Item` (from trait `Iterator`) is already specified
331 --> $DIR/duplicate.rs:103:44
333 LL | type TAW2<T> where T: Iterator<Item: Copy, Item: Copy> = T;
334 | ---------- ^^^^^^^^^^ re-bound here
336 | `Item` bound here first
338 error[E0719]: the value of the associated type `Item` (from trait `Iterator`) is already specified
339 --> $DIR/duplicate.rs:105:47
341 LL | type TAW3<T> where T: Iterator<Item: 'static, Item: 'static> = T;
342 | ------------- ^^^^^^^^^^^^^ re-bound here
344 | `Item` bound here first
346 error[E0719]: the value of the associated type `Item` (from trait `Iterator`) is already specified
347 --> $DIR/duplicate.rs:108:36
349 LL | type ETAI1<T: Iterator<Item: Copy, Item: Send>> = impl Copy;
350 | ---------- ^^^^^^^^^^ re-bound here
352 | `Item` bound here first
354 error[E0719]: the value of the associated type `Item` (from trait `Iterator`) is already specified
355 --> $DIR/duplicate.rs:110:36
357 LL | type ETAI2<T: Iterator<Item: Copy, Item: Copy>> = impl Copy;
358 | ---------- ^^^^^^^^^^ re-bound here
360 | `Item` bound here first
362 error[E0719]: the value of the associated type `Item` (from trait `Iterator`) is already specified
363 --> $DIR/duplicate.rs:112:39
365 LL | type ETAI3<T: Iterator<Item: 'static, Item: 'static>> = impl Copy;
366 | ------------- ^^^^^^^^^^^^^ re-bound here
368 | `Item` bound here first
370 error[E0719]: the value of the associated type `Item` (from trait `Iterator`) is already specified
371 --> $DIR/duplicate.rs:114:40
373 LL | type ETAI4 = impl Iterator<Item: Copy, Item: Send>;
374 | ---------- ^^^^^^^^^^ re-bound here
376 | `Item` bound here first
378 error[E0719]: the value of the associated type `Item` (from trait `Iterator`) is already specified
379 --> $DIR/duplicate.rs:116:40
381 LL | type ETAI5 = impl Iterator<Item: Copy, Item: Copy>;
382 | ---------- ^^^^^^^^^^ re-bound here
384 | `Item` bound here first
386 error[E0719]: the value of the associated type `Item` (from trait `Iterator`) is already specified
387 --> $DIR/duplicate.rs:118:43
389 LL | type ETAI6 = impl Iterator<Item: 'static, Item: 'static>;
390 | ------------- ^^^^^^^^^^^^^ re-bound here
392 | `Item` bound here first
394 error[E0719]: the value of the associated type `Item` (from trait `Iterator`) is already specified
395 --> $DIR/duplicate.rs:121:36
397 LL | trait TRI1<T: Iterator<Item: Copy, Item: Send>> {}
398 | ---------- ^^^^^^^^^^ re-bound here
400 | `Item` bound here first
402 error[E0719]: the value of the associated type `Item` (from trait `Iterator`) is already specified
403 --> $DIR/duplicate.rs:123:36
405 LL | trait TRI2<T: Iterator<Item: Copy, Item: Copy>> {}
406 | ---------- ^^^^^^^^^^ re-bound here
408 | `Item` bound here first
410 error[E0719]: the value of the associated type `Item` (from trait `Iterator`) is already specified
411 --> $DIR/duplicate.rs:125:39
413 LL | trait TRI3<T: Iterator<Item: 'static, Item: 'static>> {}
414 | ------------- ^^^^^^^^^^^^^ re-bound here
416 | `Item` bound here first
418 error[E0719]: the value of the associated type `Item` (from trait `Iterator`) is already specified
419 --> $DIR/duplicate.rs:127:34
421 LL | trait TRS1: Iterator<Item: Copy, Item: Send> {}
422 | ---------- ^^^^^^^^^^ re-bound here
424 | `Item` bound here first
426 error[E0719]: the value of the associated type `Item` (from trait `Iterator`) is already specified
427 --> $DIR/duplicate.rs:129:34
429 LL | trait TRS2: Iterator<Item: Copy, Item: Copy> {}
430 | ---------- ^^^^^^^^^^ re-bound here
432 | `Item` bound here first
434 error[E0719]: the value of the associated type `Item` (from trait `Iterator`) is already specified
435 --> $DIR/duplicate.rs:131:37
437 LL | trait TRS3: Iterator<Item: 'static, Item: 'static> {}
438 | ------------- ^^^^^^^^^^^^^ re-bound here
440 | `Item` bound here first
442 error[E0719]: the value of the associated type `Item` (from trait `Iterator`) is already specified
443 --> $DIR/duplicate.rs:133:45
445 LL | trait TRW1<T> where T: Iterator<Item: Copy, Item: Send> {}
446 | ---------- ^^^^^^^^^^ re-bound here
448 | `Item` bound here first
450 error[E0719]: the value of the associated type `Item` (from trait `Iterator`) is already specified
451 --> $DIR/duplicate.rs:135:45
453 LL | trait TRW2<T> where T: Iterator<Item: Copy, Item: Copy> {}
454 | ---------- ^^^^^^^^^^ re-bound here
456 | `Item` bound here first
458 error[E0719]: the value of the associated type `Item` (from trait `Iterator`) is already specified
459 --> $DIR/duplicate.rs:137:48
461 LL | trait TRW3<T> where T: Iterator<Item: 'static, Item: 'static> {}
462 | ------------- ^^^^^^^^^^^^^ re-bound here
464 | `Item` bound here first
466 error[E0719]: the value of the associated type `Item` (from trait `Iterator`) is already specified
467 --> $DIR/duplicate.rs:139:46
469 LL | trait TRSW1 where Self: Iterator<Item: Copy, Item: Send> {}
470 | ---------- ^^^^^^^^^^ re-bound here
472 | `Item` bound here first
474 error[E0719]: the value of the associated type `Item` (from trait `Iterator`) is already specified
475 --> $DIR/duplicate.rs:139:46
477 LL | trait TRSW1 where Self: Iterator<Item: Copy, Item: Send> {}
478 | ---------- ^^^^^^^^^^ re-bound here
480 | `Item` bound here first
482 error[E0719]: the value of the associated type `Item` (from trait `Iterator`) is already specified
483 --> $DIR/duplicate.rs:142:46
485 LL | trait TRSW2 where Self: Iterator<Item: Copy, Item: Copy> {}
486 | ---------- ^^^^^^^^^^ re-bound here
488 | `Item` bound here first
490 error[E0719]: the value of the associated type `Item` (from trait `Iterator`) is already specified
491 --> $DIR/duplicate.rs:142:46
493 LL | trait TRSW2 where Self: Iterator<Item: Copy, Item: Copy> {}
494 | ---------- ^^^^^^^^^^ re-bound here
496 | `Item` bound here first
498 error[E0719]: the value of the associated type `Item` (from trait `Iterator`) is already specified
499 --> $DIR/duplicate.rs:145:49
501 LL | trait TRSW3 where Self: Iterator<Item: 'static, Item: 'static> {}
502 | ------------- ^^^^^^^^^^^^^ re-bound here
504 | `Item` bound here first
506 error[E0719]: the value of the associated type `Item` (from trait `Iterator`) is already specified
507 --> $DIR/duplicate.rs:145:49
509 LL | trait TRSW3 where Self: Iterator<Item: 'static, Item: 'static> {}
510 | ------------- ^^^^^^^^^^^^^ re-bound here
512 | `Item` bound here first
514 error[E0719]: the value of the associated type `Item` (from trait `Iterator`) is already specified
515 --> $DIR/duplicate.rs:155:40
517 LL | type TADyn1 = dyn Iterator<Item: Copy, Item: Send>;
518 | ---------- ^^^^^^^^^^ re-bound here
520 | `Item` bound here first
522 error[E0719]: the value of the associated type `Item` (from trait `Iterator`) is already specified
523 --> $DIR/duplicate.rs:157:44
525 LL | type TADyn2 = Box<dyn Iterator<Item: Copy, Item: Copy>>;
526 | ---------- ^^^^^^^^^^ re-bound here
528 | `Item` bound here first
530 error[E0719]: the value of the associated type `Item` (from trait `Iterator`) is already specified
531 --> $DIR/duplicate.rs:159:43
533 LL | type TADyn3 = dyn Iterator<Item: 'static, Item: 'static>;
534 | ------------- ^^^^^^^^^^^^^ re-bound here
536 | `Item` bound here first
538 error[E0719]: the value of the associated type `Item` (from trait `Iterator`) is already specified
539 --> $DIR/duplicate.rs:148:43
541 LL | trait TRA1 { type A: Iterator<Item: Copy, Item: Send>; }
542 | ---------- ^^^^^^^^^^ re-bound here
544 | `Item` bound here first
546 error[E0719]: the value of the associated type `Item` (from trait `Iterator`) is already specified
547 --> $DIR/duplicate.rs:150:43
549 LL | trait TRA2 { type A: Iterator<Item: Copy, Item: Copy>; }
550 | ---------- ^^^^^^^^^^ re-bound here
552 | `Item` bound here first
554 error[E0719]: the value of the associated type `Item` (from trait `Iterator`) is already specified
555 --> $DIR/duplicate.rs:152:46
557 LL | trait TRA3 { type A: Iterator<Item: 'static, Item: 'static>; }
558 | ------------- ^^^^^^^^^^^^^ re-bound here
560 | `Item` bound here first
562 error: aborting due to 69 previous errors; 1 warning emitted
564 For more information about this error, try `rustc --explain E0719`.