@@ -198,16 +198,6 @@ LL | fn FRPIT1() -> impl Iterator<Item: Copy, Item: Send> {
198
198
| |
199
199
| `Item` bound here first
200
200
201
- error[E0719]: the value of the associated type `Item` in trait `Iterator` is already specified
202
- --> $DIR/duplicate.rs:133:42
203
- |
204
- LL | fn FRPIT1() -> impl Iterator<Item: Copy, Item: Send> {
205
- | ---------- ^^^^^^^^^^ re-bound here
206
- | |
207
- | `Item` bound here first
208
- |
209
- = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
210
-
211
201
error[E0719]: the value of the associated type `Item` in trait `Iterator` is already specified
212
202
--> $DIR/duplicate.rs:139:42
213
203
|
@@ -216,33 +206,13 @@ LL | fn FRPIT2() -> impl Iterator<Item: Copy, Item: Copy> {
216
206
| |
217
207
| `Item` bound here first
218
208
219
- error[E0719]: the value of the associated type `Item` in trait `Iterator` is already specified
220
- --> $DIR/duplicate.rs:139:42
221
- |
222
- LL | fn FRPIT2() -> impl Iterator<Item: Copy, Item: Copy> {
223
- | ---------- ^^^^^^^^^^ re-bound here
224
- | |
225
- | `Item` bound here first
226
- |
227
- = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
228
-
229
- error[E0719]: the value of the associated type `Item` in trait `Iterator` is already specified
230
- --> $DIR/duplicate.rs:145:45
231
- |
232
- LL | fn FRPIT3() -> impl Iterator<Item: 'static, Item: 'static> {
233
- | ------------- ^^^^^^^^^^^^^ re-bound here
234
- | |
235
- | `Item` bound here first
236
-
237
209
error[E0719]: the value of the associated type `Item` in trait `Iterator` is already specified
238
210
--> $DIR/duplicate.rs:145:45
239
211
|
240
212
LL | fn FRPIT3() -> impl Iterator<Item: 'static, Item: 'static> {
241
213
| ------------- ^^^^^^^^^^^^^ re-bound here
242
214
| |
243
215
| `Item` bound here first
244
- |
245
- = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
246
216
247
217
error[E0719]: the value of the associated type `Item` in trait `Iterator` is already specified
248
218
--> $DIR/duplicate.rs:151:40
@@ -340,60 +310,6 @@ LL | type ETAI3<T: Iterator<Item: 'static, Item: 'static>> = impl Copy;
340
310
| |
341
311
| `Item` bound here first
342
312
343
- error[E0719]: the value of the associated type `Item` in trait `Iterator` is already specified
344
- --> $DIR/duplicate.rs:189:40
345
- |
346
- LL | type ETAI4 = impl Iterator<Item: Copy, Item: Send>;
347
- | ---------- ^^^^^^^^^^ re-bound here
348
- | |
349
- | `Item` bound here first
350
-
351
- error[E0719]: the value of the associated type `Item` in trait `Iterator` is already specified
352
- --> $DIR/duplicate.rs:189:40
353
- |
354
- LL | type ETAI4 = impl Iterator<Item: Copy, Item: Send>;
355
- | ---------- ^^^^^^^^^^ re-bound here
356
- | |
357
- | `Item` bound here first
358
- |
359
- = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
360
-
361
- error[E0719]: the value of the associated type `Item` in trait `Iterator` is already specified
362
- --> $DIR/duplicate.rs:193:40
363
- |
364
- LL | type ETAI5 = impl Iterator<Item: Copy, Item: Copy>;
365
- | ---------- ^^^^^^^^^^ re-bound here
366
- | |
367
- | `Item` bound here first
368
-
369
- error[E0719]: the value of the associated type `Item` in trait `Iterator` is already specified
370
- --> $DIR/duplicate.rs:193:40
371
- |
372
- LL | type ETAI5 = impl Iterator<Item: Copy, Item: Copy>;
373
- | ---------- ^^^^^^^^^^ re-bound here
374
- | |
375
- | `Item` bound here first
376
- |
377
- = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
378
-
379
- error[E0719]: the value of the associated type `Item` in trait `Iterator` is already specified
380
- --> $DIR/duplicate.rs:197:43
381
- |
382
- LL | type ETAI6 = impl Iterator<Item: 'static, Item: 'static>;
383
- | ------------- ^^^^^^^^^^^^^ re-bound here
384
- | |
385
- | `Item` bound here first
386
-
387
- error[E0719]: the value of the associated type `Item` in trait `Iterator` is already specified
388
- --> $DIR/duplicate.rs:197:43
389
- |
390
- LL | type ETAI6 = impl Iterator<Item: 'static, Item: 'static>;
391
- | ------------- ^^^^^^^^^^^^^ re-bound here
392
- | |
393
- | `Item` bound here first
394
- |
395
- = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
396
-
397
313
error[E0719]: the value of the associated type `Item` in trait `Iterator` is already specified
398
314
--> $DIR/duplicate.rs:202:36
399
315
|
@@ -664,6 +580,16 @@ LL | type A: Iterator<Item: 'static, Item: 'static>;
664
580
|
665
581
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
666
582
583
+ error[E0719]: the value of the associated type `Item` in trait `Iterator` is already specified
584
+ --> $DIR/duplicate.rs:133:42
585
+ |
586
+ LL | fn FRPIT1() -> impl Iterator<Item: Copy, Item: Send> {
587
+ | ---------- ^^^^^^^^^^ re-bound here
588
+ | |
589
+ | `Item` bound here first
590
+ |
591
+ = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
592
+
667
593
error[E0282]: type annotations needed
668
594
--> $DIR/duplicate.rs:136:5
669
595
|
@@ -675,6 +601,16 @@ help: consider specifying the generic argument
675
601
LL | iter::empty::<T>()
676
602
| +++++
677
603
604
+ error[E0719]: the value of the associated type `Item` in trait `Iterator` is already specified
605
+ --> $DIR/duplicate.rs:139:42
606
+ |
607
+ LL | fn FRPIT2() -> impl Iterator<Item: Copy, Item: Copy> {
608
+ | ---------- ^^^^^^^^^^ re-bound here
609
+ | |
610
+ | `Item` bound here first
611
+ |
612
+ = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
613
+
678
614
error[E0282]: type annotations needed
679
615
--> $DIR/duplicate.rs:142:5
680
616
|
@@ -686,6 +622,16 @@ help: consider specifying the generic argument
686
622
LL | iter::empty::<T>()
687
623
| +++++
688
624
625
+ error[E0719]: the value of the associated type `Item` in trait `Iterator` is already specified
626
+ --> $DIR/duplicate.rs:145:45
627
+ |
628
+ LL | fn FRPIT3() -> impl Iterator<Item: 'static, Item: 'static> {
629
+ | ------------- ^^^^^^^^^^^^^ re-bound here
630
+ | |
631
+ | `Item` bound here first
632
+ |
633
+ = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
634
+
689
635
error[E0282]: type annotations needed
690
636
--> $DIR/duplicate.rs:148:5
691
637
|
@@ -729,6 +675,24 @@ LL | type ETAI4 = impl Iterator<Item: Copy, Item: Send>;
729
675
|
730
676
= note: `ETAI4` must be used in combination with a concrete type within the same crate
731
677
678
+ error[E0719]: the value of the associated type `Item` in trait `Iterator` is already specified
679
+ --> $DIR/duplicate.rs:189:40
680
+ |
681
+ LL | type ETAI4 = impl Iterator<Item: Copy, Item: Send>;
682
+ | ---------- ^^^^^^^^^^ re-bound here
683
+ | |
684
+ | `Item` bound here first
685
+
686
+ error[E0719]: the value of the associated type `Item` in trait `Iterator` is already specified
687
+ --> $DIR/duplicate.rs:189:40
688
+ |
689
+ LL | type ETAI4 = impl Iterator<Item: Copy, Item: Send>;
690
+ | ---------- ^^^^^^^^^^ re-bound here
691
+ | |
692
+ | `Item` bound here first
693
+ |
694
+ = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
695
+
732
696
error: unconstrained opaque type
733
697
--> $DIR/duplicate.rs:193:14
734
698
|
@@ -737,6 +701,24 @@ LL | type ETAI5 = impl Iterator<Item: Copy, Item: Copy>;
737
701
|
738
702
= note: `ETAI5` must be used in combination with a concrete type within the same crate
739
703
704
+ error[E0719]: the value of the associated type `Item` in trait `Iterator` is already specified
705
+ --> $DIR/duplicate.rs:193:40
706
+ |
707
+ LL | type ETAI5 = impl Iterator<Item: Copy, Item: Copy>;
708
+ | ---------- ^^^^^^^^^^ re-bound here
709
+ | |
710
+ | `Item` bound here first
711
+
712
+ error[E0719]: the value of the associated type `Item` in trait `Iterator` is already specified
713
+ --> $DIR/duplicate.rs:193:40
714
+ |
715
+ LL | type ETAI5 = impl Iterator<Item: Copy, Item: Copy>;
716
+ | ---------- ^^^^^^^^^^ re-bound here
717
+ | |
718
+ | `Item` bound here first
719
+ |
720
+ = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
721
+
740
722
error: unconstrained opaque type
741
723
--> $DIR/duplicate.rs:197:14
742
724
|
@@ -745,6 +727,24 @@ LL | type ETAI6 = impl Iterator<Item: 'static, Item: 'static>;
745
727
|
746
728
= note: `ETAI6` must be used in combination with a concrete type within the same crate
747
729
730
+ error[E0719]: the value of the associated type `Item` in trait `Iterator` is already specified
731
+ --> $DIR/duplicate.rs:197:43
732
+ |
733
+ LL | type ETAI6 = impl Iterator<Item: 'static, Item: 'static>;
734
+ | ------------- ^^^^^^^^^^^^^ re-bound here
735
+ | |
736
+ | `Item` bound here first
737
+
738
+ error[E0719]: the value of the associated type `Item` in trait `Iterator` is already specified
739
+ --> $DIR/duplicate.rs:197:43
740
+ |
741
+ LL | type ETAI6 = impl Iterator<Item: 'static, Item: 'static>;
742
+ | ------------- ^^^^^^^^^^^^^ re-bound here
743
+ | |
744
+ | `Item` bound here first
745
+ |
746
+ = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
747
+
748
748
error: aborting due to 87 previous errors
749
749
750
750
Some errors have detailed explanations: E0282, E0719.
0 commit comments