@@ -5,125 +5,52 @@ LL | struct S1 { f: dyn Iterator<Item: Copy> }
55 | ^^^^^^^^^^
66
77error: associated type bounds are only allowed in where clauses and function signatures, not in field type
8- --> $DIR/inside-adt.rs:8 :33
8+ --> $DIR/inside-adt.rs:7 :33
99 |
1010LL | struct S2 { f: Box<dyn Iterator<Item: Copy>> }
1111 | ^^^^^^^^^^
1212
1313error: associated type bounds are only allowed in where clauses and function signatures, not in field type
14- --> $DIR/inside-adt.rs:11 :29
14+ --> $DIR/inside-adt.rs:9 :29
1515 |
1616LL | struct S3 { f: dyn Iterator<Item: 'static> }
1717 | ^^^^^^^^^^^^^
1818
1919error: associated type bounds are only allowed in where clauses and function signatures, not in field type
20- --> $DIR/inside-adt.rs:15 :26
20+ --> $DIR/inside-adt.rs:12 :26
2121 |
2222LL | enum E1 { V(dyn Iterator<Item: Copy>) }
2323 | ^^^^^^^^^^
2424
2525error: associated type bounds are only allowed in where clauses and function signatures, not in field type
26- --> $DIR/inside-adt.rs:18 :30
26+ --> $DIR/inside-adt.rs:14 :30
2727 |
2828LL | enum E2 { V(Box<dyn Iterator<Item: Copy>>) }
2929 | ^^^^^^^^^^
3030
3131error: associated type bounds are only allowed in where clauses and function signatures, not in field type
32- --> $DIR/inside-adt.rs:21 :26
32+ --> $DIR/inside-adt.rs:16 :26
3333 |
3434LL | enum E3 { V(dyn Iterator<Item: 'static>) }
3535 | ^^^^^^^^^^^^^
3636
3737error: associated type bounds are only allowed in where clauses and function signatures, not in field type
38- --> $DIR/inside-adt.rs:25 :41
38+ --> $DIR/inside-adt.rs:19 :41
3939 |
4040LL | union U1 { f: ManuallyDrop<dyn Iterator<Item: Copy>> }
4141 | ^^^^^^^^^^
4242
4343error: associated type bounds are only allowed in where clauses and function signatures, not in field type
44- --> $DIR/inside-adt.rs:28 :45
44+ --> $DIR/inside-adt.rs:21 :45
4545 |
4646LL | union U2 { f: ManuallyDrop<Box<dyn Iterator<Item: Copy>>> }
4747 | ^^^^^^^^^^
4848
4949error: associated type bounds are only allowed in where clauses and function signatures, not in field type
50- --> $DIR/inside-adt.rs:31 :41
50+ --> $DIR/inside-adt.rs:23 :41
5151 |
5252LL | union U3 { f: ManuallyDrop<dyn Iterator<Item: 'static>> }
5353 | ^^^^^^^^^^^^^
5454
55- error[E0191]: the value of the associated type `Item` (from trait `Iterator`) must be specified
56- --> $DIR/inside-adt.rs:5:20
57- |
58- LL | struct S1 { f: dyn Iterator<Item: Copy> }
59- | ^^^^^^^^^^^^^^^^^^^^
60- | |
61- | associated type `Item` must be specified
62- | help: specify the associated types: `Iterator<Item: Copy, Item = Type>`
63-
64- error[E0191]: the value of the associated type `Item` (from trait `Iterator`) must be specified
65- --> $DIR/inside-adt.rs:8:24
66- |
67- LL | struct S2 { f: Box<dyn Iterator<Item: Copy>> }
68- | ^^^^^^^^^^^^^^^^^^^^
69- | |
70- | associated type `Item` must be specified
71- | help: specify the associated types: `Iterator<Item: Copy, Item = Type>`
72-
73- error[E0191]: the value of the associated type `Item` (from trait `Iterator`) must be specified
74- --> $DIR/inside-adt.rs:11:20
75- |
76- LL | struct S3 { f: dyn Iterator<Item: 'static> }
77- | ^^^^^^^^^^^^^^^^^^^^^^^ help: specify the associated type: `Iterator<Item: 'static, Item = Type>`
78-
79- error[E0191]: the value of the associated type `Item` (from trait `Iterator`) must be specified
80- --> $DIR/inside-adt.rs:15:17
81- |
82- LL | enum E1 { V(dyn Iterator<Item: Copy>) }
83- | ^^^^^^^^^^^^^^^^^^^^
84- | |
85- | associated type `Item` must be specified
86- | help: specify the associated types: `Iterator<Item: Copy, Item = Type>`
87-
88- error[E0191]: the value of the associated type `Item` (from trait `Iterator`) must be specified
89- --> $DIR/inside-adt.rs:18:21
90- |
91- LL | enum E2 { V(Box<dyn Iterator<Item: Copy>>) }
92- | ^^^^^^^^^^^^^^^^^^^^
93- | |
94- | associated type `Item` must be specified
95- | help: specify the associated types: `Iterator<Item: Copy, Item = Type>`
96-
97- error[E0191]: the value of the associated type `Item` (from trait `Iterator`) must be specified
98- --> $DIR/inside-adt.rs:21:17
99- |
100- LL | enum E3 { V(dyn Iterator<Item: 'static>) }
101- | ^^^^^^^^^^^^^^^^^^^^^^^ help: specify the associated type: `Iterator<Item: 'static, Item = Type>`
102-
103- error[E0191]: the value of the associated type `Item` (from trait `Iterator`) must be specified
104- --> $DIR/inside-adt.rs:25:32
105- |
106- LL | union U1 { f: ManuallyDrop<dyn Iterator<Item: Copy>> }
107- | ^^^^^^^^^^^^^^^^^^^^
108- | |
109- | associated type `Item` must be specified
110- | help: specify the associated types: `Iterator<Item: Copy, Item = Type>`
111-
112- error[E0191]: the value of the associated type `Item` (from trait `Iterator`) must be specified
113- --> $DIR/inside-adt.rs:28:36
114- |
115- LL | union U2 { f: ManuallyDrop<Box<dyn Iterator<Item: Copy>>> }
116- | ^^^^^^^^^^^^^^^^^^^^
117- | |
118- | associated type `Item` must be specified
119- | help: specify the associated types: `Iterator<Item: Copy, Item = Type>`
120-
121- error[E0191]: the value of the associated type `Item` (from trait `Iterator`) must be specified
122- --> $DIR/inside-adt.rs:31:32
123- |
124- LL | union U3 { f: ManuallyDrop<dyn Iterator<Item: 'static>> }
125- | ^^^^^^^^^^^^^^^^^^^^^^^ help: specify the associated type: `Iterator<Item: 'static, Item = Type>`
126-
127- error: aborting due to 18 previous errors
55+ error: aborting due to 9 previous errors
12856
129- For more information about this error, try `rustc --explain E0191`.
0 commit comments