]> git.proxmox.com Git - rustc.git/blob - src/test/ui/associated-type-bounds/duplicate.stderr
New upstream version 1.44.1+dfsg1
[rustc.git] / src / test / ui / associated-type-bounds / duplicate.stderr
1 warning: the feature `impl_trait_in_bindings` is incomplete and may cause the compiler to crash
2 --> $DIR/duplicate.rs:5:12
3 |
4 LL | #![feature(impl_trait_in_bindings)]
5 | ^^^^^^^^^^^^^^^^^^^^^^
6 |
7 = note: `#[warn(incomplete_features)]` on by default
8
9 error[E0719]: the value of the associated type `Item` (from trait `std::iter::Iterator`) is already specified
10 --> $DIR/duplicate.rs:10:36
11 |
12 LL | struct SI1<T: Iterator<Item: Copy, Item: Send>> { f: T }
13 | ---------- ^^^^^^^^^^ re-bound here
14 | |
15 | `Item` bound here first
16
17 error[E0719]: the value of the associated type `Item` (from trait `std::iter::Iterator`) is already specified
18 --> $DIR/duplicate.rs:12:36
19 |
20 LL | struct SI2<T: Iterator<Item: Copy, Item: Copy>> { f: T }
21 | ---------- ^^^^^^^^^^ re-bound here
22 | |
23 | `Item` bound here first
24
25 error[E0719]: the value of the associated type `Item` (from trait `std::iter::Iterator`) is already specified
26 --> $DIR/duplicate.rs:14:39
27 |
28 LL | struct SI3<T: Iterator<Item: 'static, Item: 'static>> { f: T }
29 | ------------- ^^^^^^^^^^^^^ re-bound here
30 | |
31 | `Item` bound here first
32
33 error[E0719]: the value of the associated type `Item` (from trait `std::iter::Iterator`) is already specified
34 --> $DIR/duplicate.rs:16:45
35 |
36 LL | struct SW1<T> where T: Iterator<Item: Copy, Item: Send> { f: T }
37 | ---------- ^^^^^^^^^^ re-bound here
38 | |
39 | `Item` bound here first
40
41 error[E0719]: the value of the associated type `Item` (from trait `std::iter::Iterator`) is already specified
42 --> $DIR/duplicate.rs:18:45
43 |
44 LL | struct SW2<T> where T: Iterator<Item: Copy, Item: Copy> { f: T }
45 | ---------- ^^^^^^^^^^ re-bound here
46 | |
47 | `Item` bound here first
48
49 error[E0719]: the value of the associated type `Item` (from trait `std::iter::Iterator`) is already specified
50 --> $DIR/duplicate.rs:20:48
51 |
52 LL | struct SW3<T> where T: Iterator<Item: 'static, Item: 'static> { f: T }
53 | ------------- ^^^^^^^^^^^^^ re-bound here
54 | |
55 | `Item` bound here first
56
57 error[E0719]: the value of the associated type `Item` (from trait `std::iter::Iterator`) is already specified
58 --> $DIR/duplicate.rs:23:34
59 |
60 LL | enum EI1<T: Iterator<Item: Copy, Item: Send>> { V(T) }
61 | ---------- ^^^^^^^^^^ re-bound here
62 | |
63 | `Item` bound here first
64
65 error[E0719]: the value of the associated type `Item` (from trait `std::iter::Iterator`) is already specified
66 --> $DIR/duplicate.rs:25:34
67 |
68 LL | enum EI2<T: Iterator<Item: Copy, Item: Copy>> { V(T) }
69 | ---------- ^^^^^^^^^^ re-bound here
70 | |
71 | `Item` bound here first
72
73 error[E0719]: the value of the associated type `Item` (from trait `std::iter::Iterator`) is already specified
74 --> $DIR/duplicate.rs:27:37
75 |
76 LL | enum EI3<T: Iterator<Item: 'static, Item: 'static>> { V(T) }
77 | ------------- ^^^^^^^^^^^^^ re-bound here
78 | |
79 | `Item` bound here first
80
81 error[E0719]: the value of the associated type `Item` (from trait `std::iter::Iterator`) is already specified
82 --> $DIR/duplicate.rs:29:43
83 |
84 LL | enum EW1<T> where T: Iterator<Item: Copy, Item: Send> { V(T) }
85 | ---------- ^^^^^^^^^^ re-bound here
86 | |
87 | `Item` bound here first
88
89 error[E0719]: the value of the associated type `Item` (from trait `std::iter::Iterator`) is already specified
90 --> $DIR/duplicate.rs:31:43
91 |
92 LL | enum EW2<T> where T: Iterator<Item: Copy, Item: Copy> { V(T) }
93 | ---------- ^^^^^^^^^^ re-bound here
94 | |
95 | `Item` bound here first
96
97 error[E0719]: the value of the associated type `Item` (from trait `std::iter::Iterator`) is already specified
98 --> $DIR/duplicate.rs:33:46
99 |
100 LL | enum EW3<T> where T: Iterator<Item: 'static, Item: 'static> { V(T) }
101 | ------------- ^^^^^^^^^^^^^ re-bound here
102 | |
103 | `Item` bound here first
104
105 error[E0719]: the value of the associated type `Item` (from trait `std::iter::Iterator`) is already specified
106 --> $DIR/duplicate.rs:36:35
107 |
108 LL | union UI1<T: Iterator<Item: Copy, Item: Send>> { f: T }
109 | ---------- ^^^^^^^^^^ re-bound here
110 | |
111 | `Item` bound here first
112
113 error[E0719]: the value of the associated type `Item` (from trait `std::iter::Iterator`) is already specified
114 --> $DIR/duplicate.rs:38:35
115 |
116 LL | union UI2<T: Iterator<Item: Copy, Item: Copy>> { f: T }
117 | ---------- ^^^^^^^^^^ re-bound here
118 | |
119 | `Item` bound here first
120
121 error[E0719]: the value of the associated type `Item` (from trait `std::iter::Iterator`) is already specified
122 --> $DIR/duplicate.rs:40:38
123 |
124 LL | union UI3<T: Iterator<Item: 'static, Item: 'static>> { f: T }
125 | ------------- ^^^^^^^^^^^^^ re-bound here
126 | |
127 | `Item` bound here first
128
129 error[E0719]: the value of the associated type `Item` (from trait `std::iter::Iterator`) is already specified
130 --> $DIR/duplicate.rs:42:44
131 |
132 LL | union UW1<T> where T: Iterator<Item: Copy, Item: Send> { f: T }
133 | ---------- ^^^^^^^^^^ re-bound here
134 | |
135 | `Item` bound here first
136
137 error[E0719]: the value of the associated type `Item` (from trait `std::iter::Iterator`) is already specified
138 --> $DIR/duplicate.rs:44:44
139 |
140 LL | union UW2<T> where T: Iterator<Item: Copy, Item: Copy> { f: T }
141 | ---------- ^^^^^^^^^^ re-bound here
142 | |
143 | `Item` bound here first
144
145 error[E0719]: the value of the associated type `Item` (from trait `std::iter::Iterator`) is already specified
146 --> $DIR/duplicate.rs:46:47
147 |
148 LL | union UW3<T> where T: Iterator<Item: 'static, Item: 'static> { f: T }
149 | ------------- ^^^^^^^^^^^^^ re-bound here
150 | |
151 | `Item` bound here first
152
153 error[E0719]: the value of the associated type `Item` (from trait `std::iter::Iterator`) is already specified
154 --> $DIR/duplicate.rs:49:32
155 |
156 LL | fn FI1<T: Iterator<Item: Copy, Item: Send>>() {}
157 | ---------- ^^^^^^^^^^ re-bound here
158 | |
159 | `Item` bound here first
160
161 error[E0719]: the value of the associated type `Item` (from trait `std::iter::Iterator`) is already specified
162 --> $DIR/duplicate.rs:51:32
163 |
164 LL | fn FI2<T: Iterator<Item: Copy, Item: Copy>>() {}
165 | ---------- ^^^^^^^^^^ re-bound here
166 | |
167 | `Item` bound here first
168
169 error[E0719]: the value of the associated type `Item` (from trait `std::iter::Iterator`) is already specified
170 --> $DIR/duplicate.rs:53:35
171 |
172 LL | fn FI3<T: Iterator<Item: 'static, Item: 'static>>() {}
173 | ------------- ^^^^^^^^^^^^^ re-bound here
174 | |
175 | `Item` bound here first
176
177 error[E0719]: the value of the associated type `Item` (from trait `std::iter::Iterator`) is already specified
178 --> $DIR/duplicate.rs:55:43
179 |
180 LL | fn FW1<T>() where T: Iterator<Item: Copy, Item: Send> {}
181 | ---------- ^^^^^^^^^^ re-bound here
182 | |
183 | `Item` bound here first
184
185 error[E0719]: the value of the associated type `Item` (from trait `std::iter::Iterator`) is already specified
186 --> $DIR/duplicate.rs:57:43
187 |
188 LL | fn FW2<T>() where T: Iterator<Item: Copy, Item: Copy> {}
189 | ---------- ^^^^^^^^^^ re-bound here
190 | |
191 | `Item` bound here first
192
193 error[E0719]: the value of the associated type `Item` (from trait `std::iter::Iterator`) is already specified
194 --> $DIR/duplicate.rs:59:46
195 |
196 LL | fn FW3<T>() where T: Iterator<Item: 'static, Item: 'static> {}
197 | ------------- ^^^^^^^^^^^^^ re-bound here
198 | |
199 | `Item` bound here first
200
201 error[E0719]: the value of the associated type `Item` (from trait `std::iter::Iterator`) is already specified
202 --> $DIR/duplicate.rs:68:40
203 |
204 LL | fn FAPIT1(_: impl Iterator<Item: Copy, Item: Send>) {}
205 | ---------- ^^^^^^^^^^ re-bound here
206 | |
207 | `Item` bound here first
208
209 error[E0719]: the value of the associated type `Item` (from trait `std::iter::Iterator`) is already specified
210 --> $DIR/duplicate.rs:70:40
211 |
212 LL | fn FAPIT2(_: impl Iterator<Item: Copy, Item: Copy>) {}
213 | ---------- ^^^^^^^^^^ re-bound here
214 | |
215 | `Item` bound here first
216
217 error[E0719]: the value of the associated type `Item` (from trait `std::iter::Iterator`) is already specified
218 --> $DIR/duplicate.rs:72:43
219 |
220 LL | fn FAPIT3(_: impl Iterator<Item: 'static, Item: 'static>) {}
221 | ------------- ^^^^^^^^^^^^^ re-bound here
222 | |
223 | `Item` bound here first
224
225 error[E0719]: the value of the associated type `Item` (from trait `std::iter::Iterator`) is already specified
226 --> $DIR/duplicate.rs:62:42
227 |
228 LL | fn FRPIT1() -> impl Iterator<Item: Copy, Item: Send> { iter::empty() }
229 | ---------- ^^^^^^^^^^ re-bound here
230 | |
231 | `Item` bound here first
232
233 error[E0719]: the value of the associated type `Item` (from trait `std::iter::Iterator`) is already specified
234 --> $DIR/duplicate.rs:64:42
235 |
236 LL | fn FRPIT2() -> impl Iterator<Item: Copy, Item: Copy> { iter::empty() }
237 | ---------- ^^^^^^^^^^ re-bound here
238 | |
239 | `Item` bound here first
240
241 error[E0719]: the value of the associated type `Item` (from trait `std::iter::Iterator`) is already specified
242 --> $DIR/duplicate.rs:66:45
243 |
244 LL | fn FRPIT3() -> impl Iterator<Item: 'static, Item: 'static> { iter::empty() }
245 | ------------- ^^^^^^^^^^^^^ re-bound here
246 | |
247 | `Item` bound here first
248
249 error[E0719]: the value of the associated type `Item` (from trait `std::iter::Iterator`) is already specified
250 --> $DIR/duplicate.rs:75:39
251 |
252 LL | const CIT1: impl Iterator<Item: Copy, Item: Send> = iter::empty();
253 | ---------- ^^^^^^^^^^ re-bound here
254 | |
255 | `Item` bound here first
256
257 error[E0719]: the value of the associated type `Item` (from trait `std::iter::Iterator`) is already specified
258 --> $DIR/duplicate.rs:77:39
259 |
260 LL | const CIT2: impl Iterator<Item: Copy, Item: Copy> = iter::empty();
261 | ---------- ^^^^^^^^^^ re-bound here
262 | |
263 | `Item` bound here first
264
265 error[E0719]: the value of the associated type `Item` (from trait `std::iter::Iterator`) is already specified
266 --> $DIR/duplicate.rs:79:42
267 |
268 LL | const CIT3: impl Iterator<Item: 'static, Item: 'static> = iter::empty();
269 | ------------- ^^^^^^^^^^^^^ re-bound here
270 | |
271 | `Item` bound here first
272
273 error[E0719]: the value of the associated type `Item` (from trait `std::iter::Iterator`) is already specified
274 --> $DIR/duplicate.rs:81:40
275 |
276 LL | static SIT1: impl Iterator<Item: Copy, Item: Send> = iter::empty();
277 | ---------- ^^^^^^^^^^ re-bound here
278 | |
279 | `Item` bound here first
280
281 error[E0719]: the value of the associated type `Item` (from trait `std::iter::Iterator`) is already specified
282 --> $DIR/duplicate.rs:83:40
283 |
284 LL | static SIT2: impl Iterator<Item: Copy, Item: Copy> = iter::empty();
285 | ---------- ^^^^^^^^^^ re-bound here
286 | |
287 | `Item` bound here first
288
289 error[E0719]: the value of the associated type `Item` (from trait `std::iter::Iterator`) is already specified
290 --> $DIR/duplicate.rs:85:43
291 |
292 LL | static SIT3: impl Iterator<Item: 'static, Item: 'static> = iter::empty();
293 | ------------- ^^^^^^^^^^^^^ re-bound here
294 | |
295 | `Item` bound here first
296
297 error[E0719]: the value of the associated type `Item` (from trait `std::iter::Iterator`) is already specified
298 --> $DIR/duplicate.rs:88:46
299 |
300 LL | fn lit1() { let _: impl Iterator<Item: Copy, Item: Send> = iter::empty(); }
301 | ---------- ^^^^^^^^^^ re-bound here
302 | |
303 | `Item` bound here first
304
305 error[E0719]: the value of the associated type `Item` (from trait `std::iter::Iterator`) is already specified
306 --> $DIR/duplicate.rs:90:46
307 |
308 LL | fn lit2() { let _: impl Iterator<Item: Copy, Item: Copy> = iter::empty(); }
309 | ---------- ^^^^^^^^^^ re-bound here
310 | |
311 | `Item` bound here first
312
313 error[E0719]: the value of the associated type `Item` (from trait `std::iter::Iterator`) is already specified
314 --> $DIR/duplicate.rs:92:49
315 |
316 LL | fn lit3() { let _: impl Iterator<Item: 'static, Item: 'static> = iter::empty(); }
317 | ------------- ^^^^^^^^^^^^^ re-bound here
318 | |
319 | `Item` bound here first
320
321 error[E0719]: the value of the associated type `Item` (from trait `std::iter::Iterator`) is already specified
322 --> $DIR/duplicate.rs:95:35
323 |
324 LL | type TAI1<T: Iterator<Item: Copy, Item: Send>> = T;
325 | ---------- ^^^^^^^^^^ re-bound here
326 | |
327 | `Item` bound here first
328
329 error[E0719]: the value of the associated type `Item` (from trait `std::iter::Iterator`) is already specified
330 --> $DIR/duplicate.rs:97:35
331 |
332 LL | type TAI2<T: Iterator<Item: Copy, Item: Copy>> = T;
333 | ---------- ^^^^^^^^^^ re-bound here
334 | |
335 | `Item` bound here first
336
337 error[E0719]: the value of the associated type `Item` (from trait `std::iter::Iterator`) is already specified
338 --> $DIR/duplicate.rs:99:38
339 |
340 LL | type TAI3<T: Iterator<Item: 'static, Item: 'static>> = T;
341 | ------------- ^^^^^^^^^^^^^ re-bound here
342 | |
343 | `Item` bound here first
344
345 error[E0719]: the value of the associated type `Item` (from trait `std::iter::Iterator`) is already specified
346 --> $DIR/duplicate.rs:101:44
347 |
348 LL | type TAW1<T> where T: Iterator<Item: Copy, Item: Send> = T;
349 | ---------- ^^^^^^^^^^ re-bound here
350 | |
351 | `Item` bound here first
352
353 error[E0719]: the value of the associated type `Item` (from trait `std::iter::Iterator`) is already specified
354 --> $DIR/duplicate.rs:103:44
355 |
356 LL | type TAW2<T> where T: Iterator<Item: Copy, Item: Copy> = T;
357 | ---------- ^^^^^^^^^^ re-bound here
358 | |
359 | `Item` bound here first
360
361 error[E0719]: the value of the associated type `Item` (from trait `std::iter::Iterator`) is already specified
362 --> $DIR/duplicate.rs:105:47
363 |
364 LL | type TAW3<T> where T: Iterator<Item: 'static, Item: 'static> = T;
365 | ------------- ^^^^^^^^^^^^^ re-bound here
366 | |
367 | `Item` bound here first
368
369 error: could not find defining uses
370 --> $DIR/duplicate.rs:108:1
371 |
372 LL | type ETAI1<T: Iterator<Item: Copy, Item: Send>> = impl Copy;
373 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
374
375 error[E0719]: the value of the associated type `Item` (from trait `std::iter::Iterator`) is already specified
376 --> $DIR/duplicate.rs:108:36
377 |
378 LL | type ETAI1<T: Iterator<Item: Copy, Item: Send>> = impl Copy;
379 | ---------- ^^^^^^^^^^ re-bound here
380 | |
381 | `Item` bound here first
382
383 error: could not find defining uses
384 --> $DIR/duplicate.rs:113:1
385 |
386 LL | type ETAI2<T: Iterator<Item: Copy, Item: Copy>> = impl Copy;
387 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
388
389 error[E0719]: the value of the associated type `Item` (from trait `std::iter::Iterator`) is already specified
390 --> $DIR/duplicate.rs:113:36
391 |
392 LL | type ETAI2<T: Iterator<Item: Copy, Item: Copy>> = impl Copy;
393 | ---------- ^^^^^^^^^^ re-bound here
394 | |
395 | `Item` bound here first
396
397 error: could not find defining uses
398 --> $DIR/duplicate.rs:118:1
399 |
400 LL | type ETAI3<T: Iterator<Item: 'static, Item: 'static>> = impl Copy;
401 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
402
403 error[E0719]: the value of the associated type `Item` (from trait `std::iter::Iterator`) is already specified
404 --> $DIR/duplicate.rs:118:39
405 |
406 LL | type ETAI3<T: Iterator<Item: 'static, Item: 'static>> = impl Copy;
407 | ------------- ^^^^^^^^^^^^^ re-bound here
408 | |
409 | `Item` bound here first
410
411 error: could not find defining uses
412 --> $DIR/duplicate.rs:123:1
413 |
414 LL | type ETAI4 = impl Iterator<Item: Copy, Item: Send>;
415 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
416
417 error[E0719]: the value of the associated type `Item` (from trait `std::iter::Iterator`) is already specified
418 --> $DIR/duplicate.rs:123:40
419 |
420 LL | type ETAI4 = impl Iterator<Item: Copy, Item: Send>;
421 | ---------- ^^^^^^^^^^ re-bound here
422 | |
423 | `Item` bound here first
424
425 error: could not find defining uses
426 --> $DIR/duplicate.rs:128:1
427 |
428 LL | type ETAI5 = impl Iterator<Item: Copy, Item: Copy>;
429 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
430
431 error[E0719]: the value of the associated type `Item` (from trait `std::iter::Iterator`) is already specified
432 --> $DIR/duplicate.rs:128:40
433 |
434 LL | type ETAI5 = impl Iterator<Item: Copy, Item: Copy>;
435 | ---------- ^^^^^^^^^^ re-bound here
436 | |
437 | `Item` bound here first
438
439 error: could not find defining uses
440 --> $DIR/duplicate.rs:133:1
441 |
442 LL | type ETAI6 = impl Iterator<Item: 'static, Item: 'static>;
443 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
444
445 error[E0719]: the value of the associated type `Item` (from trait `std::iter::Iterator`) is already specified
446 --> $DIR/duplicate.rs:133:43
447 |
448 LL | type ETAI6 = impl Iterator<Item: 'static, Item: 'static>;
449 | ------------- ^^^^^^^^^^^^^ re-bound here
450 | |
451 | `Item` bound here first
452
453 error[E0719]: the value of the associated type `Item` (from trait `std::iter::Iterator`) is already specified
454 --> $DIR/duplicate.rs:139:36
455 |
456 LL | trait TRI1<T: Iterator<Item: Copy, Item: Send>> {}
457 | ---------- ^^^^^^^^^^ re-bound here
458 | |
459 | `Item` bound here first
460
461 error[E0719]: the value of the associated type `Item` (from trait `std::iter::Iterator`) is already specified
462 --> $DIR/duplicate.rs:141:36
463 |
464 LL | trait TRI2<T: Iterator<Item: Copy, Item: Copy>> {}
465 | ---------- ^^^^^^^^^^ re-bound here
466 | |
467 | `Item` bound here first
468
469 error[E0719]: the value of the associated type `Item` (from trait `std::iter::Iterator`) is already specified
470 --> $DIR/duplicate.rs:143:39
471 |
472 LL | trait TRI3<T: Iterator<Item: 'static, Item: 'static>> {}
473 | ------------- ^^^^^^^^^^^^^ re-bound here
474 | |
475 | `Item` bound here first
476
477 error[E0719]: the value of the associated type `Item` (from trait `std::iter::Iterator`) is already specified
478 --> $DIR/duplicate.rs:145:34
479 |
480 LL | trait TRS1: Iterator<Item: Copy, Item: Send> {}
481 | ---------- ^^^^^^^^^^ re-bound here
482 | |
483 | `Item` bound here first
484
485 error[E0719]: the value of the associated type `Item` (from trait `std::iter::Iterator`) is already specified
486 --> $DIR/duplicate.rs:147:34
487 |
488 LL | trait TRS2: Iterator<Item: Copy, Item: Copy> {}
489 | ---------- ^^^^^^^^^^ re-bound here
490 | |
491 | `Item` bound here first
492
493 error[E0719]: the value of the associated type `Item` (from trait `std::iter::Iterator`) is already specified
494 --> $DIR/duplicate.rs:149:37
495 |
496 LL | trait TRS3: Iterator<Item: 'static, Item: 'static> {}
497 | ------------- ^^^^^^^^^^^^^ re-bound here
498 | |
499 | `Item` bound here first
500
501 error[E0719]: the value of the associated type `Item` (from trait `std::iter::Iterator`) is already specified
502 --> $DIR/duplicate.rs:151:45
503 |
504 LL | trait TRW1<T> where T: Iterator<Item: Copy, Item: Send> {}
505 | ---------- ^^^^^^^^^^ re-bound here
506 | |
507 | `Item` bound here first
508
509 error[E0719]: the value of the associated type `Item` (from trait `std::iter::Iterator`) is already specified
510 --> $DIR/duplicate.rs:153:45
511 |
512 LL | trait TRW2<T> where T: Iterator<Item: Copy, Item: Copy> {}
513 | ---------- ^^^^^^^^^^ re-bound here
514 | |
515 | `Item` bound here first
516
517 error[E0719]: the value of the associated type `Item` (from trait `std::iter::Iterator`) is already specified
518 --> $DIR/duplicate.rs:155:48
519 |
520 LL | trait TRW3<T> where T: Iterator<Item: 'static, Item: 'static> {}
521 | ------------- ^^^^^^^^^^^^^ re-bound here
522 | |
523 | `Item` bound here first
524
525 error[E0719]: the value of the associated type `Item` (from trait `std::iter::Iterator`) is already specified
526 --> $DIR/duplicate.rs:157:46
527 |
528 LL | trait TRSW1 where Self: Iterator<Item: Copy, Item: Send> {}
529 | ---------- ^^^^^^^^^^ re-bound here
530 | |
531 | `Item` bound here first
532
533 error[E0719]: the value of the associated type `Item` (from trait `std::iter::Iterator`) is already specified
534 --> $DIR/duplicate.rs:157:46
535 |
536 LL | trait TRSW1 where Self: Iterator<Item: Copy, Item: Send> {}
537 | ---------- ^^^^^^^^^^ re-bound here
538 | |
539 | `Item` bound here first
540
541 error[E0719]: the value of the associated type `Item` (from trait `std::iter::Iterator`) is already specified
542 --> $DIR/duplicate.rs:160:46
543 |
544 LL | trait TRSW2 where Self: Iterator<Item: Copy, Item: Copy> {}
545 | ---------- ^^^^^^^^^^ re-bound here
546 | |
547 | `Item` bound here first
548
549 error[E0719]: the value of the associated type `Item` (from trait `std::iter::Iterator`) is already specified
550 --> $DIR/duplicate.rs:160:46
551 |
552 LL | trait TRSW2 where Self: Iterator<Item: Copy, Item: Copy> {}
553 | ---------- ^^^^^^^^^^ re-bound here
554 | |
555 | `Item` bound here first
556
557 error[E0719]: the value of the associated type `Item` (from trait `std::iter::Iterator`) is already specified
558 --> $DIR/duplicate.rs:163:49
559 |
560 LL | trait TRSW3 where Self: Iterator<Item: 'static, Item: 'static> {}
561 | ------------- ^^^^^^^^^^^^^ re-bound here
562 | |
563 | `Item` bound here first
564
565 error[E0719]: the value of the associated type `Item` (from trait `std::iter::Iterator`) is already specified
566 --> $DIR/duplicate.rs:163:49
567 |
568 LL | trait TRSW3 where Self: Iterator<Item: 'static, Item: 'static> {}
569 | ------------- ^^^^^^^^^^^^^ re-bound here
570 | |
571 | `Item` bound here first
572
573 error[E0719]: the value of the associated type `Item` (from trait `std::iter::Iterator`) is already specified
574 --> $DIR/duplicate.rs:166:43
575 |
576 LL | trait TRA1 { type A: Iterator<Item: Copy, Item: Send>; }
577 | ---------- ^^^^^^^^^^ re-bound here
578 | |
579 | `Item` bound here first
580
581 error[E0719]: the value of the associated type `Item` (from trait `std::iter::Iterator`) is already specified
582 --> $DIR/duplicate.rs:168:43
583 |
584 LL | trait TRA2 { type A: Iterator<Item: Copy, Item: Copy>; }
585 | ---------- ^^^^^^^^^^ re-bound here
586 | |
587 | `Item` bound here first
588
589 error[E0719]: the value of the associated type `Item` (from trait `std::iter::Iterator`) is already specified
590 --> $DIR/duplicate.rs:170:46
591 |
592 LL | trait TRA3 { type A: Iterator<Item: 'static, Item: 'static>; }
593 | ------------- ^^^^^^^^^^^^^ re-bound here
594 | |
595 | `Item` bound here first
596
597 error[E0719]: the value of the associated type `Item` (from trait `std::iter::Iterator`) is already specified
598 --> $DIR/duplicate.rs:173:40
599 |
600 LL | type TADyn1 = dyn Iterator<Item: Copy, Item: Send>;
601 | ---------- ^^^^^^^^^^ re-bound here
602 | |
603 | `Item` bound here first
604
605 error[E0719]: the value of the associated type `Item` (from trait `std::iter::Iterator`) is already specified
606 --> $DIR/duplicate.rs:177:44
607 |
608 LL | type TADyn2 = Box<dyn Iterator<Item: Copy, Item: Copy>>;
609 | ---------- ^^^^^^^^^^ re-bound here
610 | |
611 | `Item` bound here first
612
613 error[E0719]: the value of the associated type `Item` (from trait `std::iter::Iterator`) is already specified
614 --> $DIR/duplicate.rs:181:43
615 |
616 LL | type TADyn3 = dyn Iterator<Item: 'static, Item: 'static>;
617 | ------------- ^^^^^^^^^^^^^ re-bound here
618 | |
619 | `Item` bound here first
620
621 error: could not find defining uses
622 --> $DIR/duplicate.rs:108:24
623 |
624 LL | type ETAI1<T: Iterator<Item: Copy, Item: Send>> = impl Copy;
625 | ^^^^^^^^^^
626
627 error: could not find defining uses
628 --> $DIR/duplicate.rs:108:36
629 |
630 LL | type ETAI1<T: Iterator<Item: Copy, Item: Send>> = impl Copy;
631 | ^^^^^^^^^^
632
633 error: could not find defining uses
634 --> $DIR/duplicate.rs:113:24
635 |
636 LL | type ETAI2<T: Iterator<Item: Copy, Item: Copy>> = impl Copy;
637 | ^^^^^^^^^^
638
639 error: could not find defining uses
640 --> $DIR/duplicate.rs:113:36
641 |
642 LL | type ETAI2<T: Iterator<Item: Copy, Item: Copy>> = impl Copy;
643 | ^^^^^^^^^^
644
645 error: could not find defining uses
646 --> $DIR/duplicate.rs:118:24
647 |
648 LL | type ETAI3<T: Iterator<Item: 'static, Item: 'static>> = impl Copy;
649 | ^^^^^^^^^^^^^
650
651 error: could not find defining uses
652 --> $DIR/duplicate.rs:118:39
653 |
654 LL | type ETAI3<T: Iterator<Item: 'static, Item: 'static>> = impl Copy;
655 | ^^^^^^^^^^^^^
656
657 error: could not find defining uses
658 --> $DIR/duplicate.rs:123:28
659 |
660 LL | type ETAI4 = impl Iterator<Item: Copy, Item: Send>;
661 | ^^^^^^^^^^
662
663 error: could not find defining uses
664 --> $DIR/duplicate.rs:123:40
665 |
666 LL | type ETAI4 = impl Iterator<Item: Copy, Item: Send>;
667 | ^^^^^^^^^^
668
669 error: could not find defining uses
670 --> $DIR/duplicate.rs:128:28
671 |
672 LL | type ETAI5 = impl Iterator<Item: Copy, Item: Copy>;
673 | ^^^^^^^^^^
674
675 error: could not find defining uses
676 --> $DIR/duplicate.rs:128:40
677 |
678 LL | type ETAI5 = impl Iterator<Item: Copy, Item: Copy>;
679 | ^^^^^^^^^^
680
681 error: could not find defining uses
682 --> $DIR/duplicate.rs:133:28
683 |
684 LL | type ETAI6 = impl Iterator<Item: 'static, Item: 'static>;
685 | ^^^^^^^^^^^^^
686
687 error: could not find defining uses
688 --> $DIR/duplicate.rs:133:43
689 |
690 LL | type ETAI6 = impl Iterator<Item: 'static, Item: 'static>;
691 | ^^^^^^^^^^^^^
692
693 error: could not find defining uses
694 --> $DIR/duplicate.rs:173:28
695 |
696 LL | type TADyn1 = dyn Iterator<Item: Copy, Item: Send>;
697 | ^^^^^^^^^^
698
699 error: could not find defining uses
700 --> $DIR/duplicate.rs:173:40
701 |
702 LL | type TADyn1 = dyn Iterator<Item: Copy, Item: Send>;
703 | ^^^^^^^^^^
704
705 error: could not find defining uses
706 --> $DIR/duplicate.rs:177:32
707 |
708 LL | type TADyn2 = Box<dyn Iterator<Item: Copy, Item: Copy>>;
709 | ^^^^^^^^^^
710
711 error: could not find defining uses
712 --> $DIR/duplicate.rs:177:44
713 |
714 LL | type TADyn2 = Box<dyn Iterator<Item: Copy, Item: Copy>>;
715 | ^^^^^^^^^^
716
717 error: could not find defining uses
718 --> $DIR/duplicate.rs:181:28
719 |
720 LL | type TADyn3 = dyn Iterator<Item: 'static, Item: 'static>;
721 | ^^^^^^^^^^^^^
722
723 error: could not find defining uses
724 --> $DIR/duplicate.rs:181:43
725 |
726 LL | type TADyn3 = dyn Iterator<Item: 'static, Item: 'static>;
727 | ^^^^^^^^^^^^^
728
729 error: aborting due to 96 previous errors; 1 warning emitted
730
731 For more information about this error, try `rustc --explain E0719`.