@@ -198,16 +198,6 @@ LL | fn FRPIT1() -> impl Iterator<Item: Copy, Item: Send> {
198198 | |
199199 | `Item` bound here first
200200
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-
211201error[E0719]: the value of the associated type `Item` in trait `Iterator` is already specified
212202 --> $DIR/duplicate.rs:139:42
213203 |
@@ -216,33 +206,13 @@ LL | fn FRPIT2() -> impl Iterator<Item: Copy, Item: Copy> {
216206 | |
217207 | `Item` bound here first
218208
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-
237209error[E0719]: the value of the associated type `Item` in trait `Iterator` is already specified
238210 --> $DIR/duplicate.rs:145:45
239211 |
240212LL | fn FRPIT3() -> impl Iterator<Item: 'static, Item: 'static> {
241213 | ------------- ^^^^^^^^^^^^^ re-bound here
242214 | |
243215 | `Item` bound here first
244- |
245- = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
246216
247217error[E0719]: the value of the associated type `Item` in trait `Iterator` is already specified
248218 --> $DIR/duplicate.rs:151:40
@@ -340,60 +310,6 @@ LL | type ETAI3<T: Iterator<Item: 'static, Item: 'static>> = impl Copy;
340310 | |
341311 | `Item` bound here first
342312
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-
397313error[E0719]: the value of the associated type `Item` in trait `Iterator` is already specified
398314 --> $DIR/duplicate.rs:202:36
399315 |
@@ -664,6 +580,16 @@ LL | type A: Iterator<Item: 'static, Item: 'static>;
664580 |
665581 = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
666582
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+
667593error[E0282]: type annotations needed
668594 --> $DIR/duplicate.rs:136:5
669595 |
@@ -675,6 +601,16 @@ help: consider specifying the generic argument
675601LL | iter::empty::<T>()
676602 | +++++
677603
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+
678614error[E0282]: type annotations needed
679615 --> $DIR/duplicate.rs:142:5
680616 |
@@ -686,6 +622,16 @@ help: consider specifying the generic argument
686622LL | iter::empty::<T>()
687623 | +++++
688624
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+
689635error[E0282]: type annotations needed
690636 --> $DIR/duplicate.rs:148:5
691637 |
@@ -729,6 +675,24 @@ LL | type ETAI4 = impl Iterator<Item: Copy, Item: Send>;
729675 |
730676 = note: `ETAI4` must be used in combination with a concrete type within the same crate
731677
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+
732696error: unconstrained opaque type
733697 --> $DIR/duplicate.rs:193:14
734698 |
@@ -737,6 +701,24 @@ LL | type ETAI5 = impl Iterator<Item: Copy, Item: Copy>;
737701 |
738702 = note: `ETAI5` must be used in combination with a concrete type within the same crate
739703
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+
740722error: unconstrained opaque type
741723 --> $DIR/duplicate.rs:197:14
742724 |
@@ -745,6 +727,24 @@ LL | type ETAI6 = impl Iterator<Item: 'static, Item: 'static>;
745727 |
746728 = note: `ETAI6` must be used in combination with a concrete type within the same crate
747729
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+
748748error: aborting due to 87 previous errors
749749
750750Some errors have detailed explanations: E0282, E0719.
0 commit comments