@@ -6,6 +6,30 @@ LL | struct SI1<T: Iterator<Item: Copy, Item: Send>> {
6
6
| |
7
7
| `Item` bound here first
8
8
9
+ error[E0719]: the value of the associated type `Item` in trait `Iterator` is already specified
10
+ --> $DIR/duplicate.rs:255:40
11
+ |
12
+ LL | type TADyn1 = dyn Iterator<Item: Copy, Item: Send>;
13
+ | ---------- ^^^^^^^^^^ re-bound here
14
+ | |
15
+ | `Item` bound here first
16
+
17
+ error[E0719]: the value of the associated type `Item` in trait `Iterator` is already specified
18
+ --> $DIR/duplicate.rs:257:44
19
+ |
20
+ LL | type TADyn2 = Box<dyn Iterator<Item: Copy, Item: Copy>>;
21
+ | ---------- ^^^^^^^^^^ re-bound here
22
+ | |
23
+ | `Item` bound here first
24
+
25
+ error[E0719]: the value of the associated type `Item` in trait `Iterator` is already specified
26
+ --> $DIR/duplicate.rs:259:43
27
+ |
28
+ LL | type TADyn3 = dyn Iterator<Item: 'static, Item: 'static>;
29
+ | ------------- ^^^^^^^^^^^^^ re-bound here
30
+ | |
31
+ | `Item` bound here first
32
+
9
33
error[E0719]: the value of the associated type `Item` in trait `Iterator` is already specified
10
34
--> $DIR/duplicate.rs:11:36
11
35
|
@@ -490,30 +514,6 @@ LL | Self: Iterator<Item: 'static, Item: 'static>,
490
514
|
491
515
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
492
516
493
- error[E0719]: the value of the associated type `Item` in trait `Iterator` is already specified
494
- --> $DIR/duplicate.rs:255:40
495
- |
496
- LL | type TADyn1 = dyn Iterator<Item: Copy, Item: Send>;
497
- | ---------- ^^^^^^^^^^ re-bound here
498
- | |
499
- | `Item` bound here first
500
-
501
- error[E0719]: the value of the associated type `Item` in trait `Iterator` is already specified
502
- --> $DIR/duplicate.rs:257:44
503
- |
504
- LL | type TADyn2 = Box<dyn Iterator<Item: Copy, Item: Copy>>;
505
- | ---------- ^^^^^^^^^^ re-bound here
506
- | |
507
- | `Item` bound here first
508
-
509
- error[E0719]: the value of the associated type `Item` in trait `Iterator` is already specified
510
- --> $DIR/duplicate.rs:259:43
511
- |
512
- LL | type TADyn3 = dyn Iterator<Item: 'static, Item: 'static>;
513
- | ------------- ^^^^^^^^^^^^^ re-bound here
514
- | |
515
- | `Item` bound here first
516
-
517
517
error[E0719]: the value of the associated type `Item` in trait `Iterator` is already specified
518
518
--> $DIR/duplicate.rs:243:34
519
519
|
0 commit comments