@@ -5,125 +5,52 @@ LL | struct S1 { f: dyn Iterator<Item: Copy> }
5
5
| ^^^^^^^^^^
6
6
7
7
error: 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
9
9
|
10
10
LL | struct S2 { f: Box<dyn Iterator<Item: Copy>> }
11
11
| ^^^^^^^^^^
12
12
13
13
error: 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
15
15
|
16
16
LL | struct S3 { f: dyn Iterator<Item: 'static> }
17
17
| ^^^^^^^^^^^^^
18
18
19
19
error: 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
21
21
|
22
22
LL | enum E1 { V(dyn Iterator<Item: Copy>) }
23
23
| ^^^^^^^^^^
24
24
25
25
error: 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
27
27
|
28
28
LL | enum E2 { V(Box<dyn Iterator<Item: Copy>>) }
29
29
| ^^^^^^^^^^
30
30
31
31
error: 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
33
33
|
34
34
LL | enum E3 { V(dyn Iterator<Item: 'static>) }
35
35
| ^^^^^^^^^^^^^
36
36
37
37
error: 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
39
39
|
40
40
LL | union U1 { f: ManuallyDrop<dyn Iterator<Item: Copy>> }
41
41
| ^^^^^^^^^^
42
42
43
43
error: 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
45
45
|
46
46
LL | union U2 { f: ManuallyDrop<Box<dyn Iterator<Item: Copy>>> }
47
47
| ^^^^^^^^^^
48
48
49
49
error: 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
51
51
|
52
52
LL | union U3 { f: ManuallyDrop<dyn Iterator<Item: 'static>> }
53
53
| ^^^^^^^^^^^^^
54
54
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
128
56
129
- For more information about this error, try `rustc --explain E0191`.
0 commit comments