1
1
error[E0308]: mismatched types
2
- --> $DIR/enum-variant-generic-args.rs:7 :25
2
+ --> $DIR/enum-variant-generic-args.rs:13 :25
3
3
|
4
4
LL | Self::TSVariant(());
5
5
| ^^ expected type parameter, found ()
@@ -8,19 +8,19 @@ LL | Self::TSVariant(());
8
8
found type `()`
9
9
10
10
error[E0109]: type arguments are not allowed for this type
11
- --> $DIR/enum-variant-generic-args.rs:9 :27
11
+ --> $DIR/enum-variant-generic-args.rs:15 :27
12
12
|
13
13
LL | Self::TSVariant::<()>(());
14
14
| ^^ type argument not allowed
15
15
16
16
error[E0109]: type arguments are not allowed for this type
17
- --> $DIR/enum-variant-generic-args.rs:11 :16
17
+ --> $DIR/enum-variant-generic-args.rs:17 :16
18
18
|
19
19
LL | Self::<()>::TSVariant(());
20
20
| ^^ type argument not allowed
21
21
22
22
error[E0308]: mismatched types
23
- --> $DIR/enum-variant-generic-args.rs:11 :31
23
+ --> $DIR/enum-variant-generic-args.rs:17 :31
24
24
|
25
25
LL | Self::<()>::TSVariant(());
26
26
| ^^ expected type parameter, found ()
@@ -29,19 +29,19 @@ LL | Self::<()>::TSVariant(());
29
29
found type `()`
30
30
31
31
error[E0109]: type arguments are not allowed for this type
32
- --> $DIR/enum-variant-generic-args.rs:14 :16
32
+ --> $DIR/enum-variant-generic-args.rs:20 :16
33
33
|
34
34
LL | Self::<()>::TSVariant::<()>(());
35
35
| ^^ type argument not allowed
36
36
37
37
error[E0109]: type arguments are not allowed for this type
38
- --> $DIR/enum-variant-generic-args.rs:14 :33
38
+ --> $DIR/enum-variant-generic-args.rs:20 :33
39
39
|
40
40
LL | Self::<()>::TSVariant::<()>(());
41
41
| ^^ type argument not allowed
42
42
43
43
error[E0308]: mismatched types
44
- --> $DIR/enum-variant-generic-args.rs:20 :29
44
+ --> $DIR/enum-variant-generic-args.rs:26 :29
45
45
|
46
46
LL | Self::SVariant { v: () };
47
47
| ^^ expected type parameter, found ()
@@ -50,13 +50,13 @@ LL | Self::SVariant { v: () };
50
50
found type `()`
51
51
52
52
error[E0109]: type arguments are not allowed for this type
53
- --> $DIR/enum-variant-generic-args.rs:22 :26
53
+ --> $DIR/enum-variant-generic-args.rs:28 :26
54
54
|
55
55
LL | Self::SVariant::<()> { v: () };
56
56
| ^^ type argument not allowed
57
57
58
58
error[E0308]: mismatched types
59
- --> $DIR/enum-variant-generic-args.rs:22 :35
59
+ --> $DIR/enum-variant-generic-args.rs:28 :35
60
60
|
61
61
LL | Self::SVariant::<()> { v: () };
62
62
| ^^ expected type parameter, found ()
@@ -65,13 +65,13 @@ LL | Self::SVariant::<()> { v: () };
65
65
found type `()`
66
66
67
67
error[E0109]: type arguments are not allowed for this type
68
- --> $DIR/enum-variant-generic-args.rs:25 :16
68
+ --> $DIR/enum-variant-generic-args.rs:31 :16
69
69
|
70
70
LL | Self::<()>::SVariant { v: () };
71
71
| ^^ type argument not allowed
72
72
73
73
error[E0308]: mismatched types
74
- --> $DIR/enum-variant-generic-args.rs:25 :35
74
+ --> $DIR/enum-variant-generic-args.rs:31 :35
75
75
|
76
76
LL | Self::<()>::SVariant { v: () };
77
77
| ^^ expected type parameter, found ()
@@ -80,19 +80,19 @@ LL | Self::<()>::SVariant { v: () };
80
80
found type `()`
81
81
82
82
error[E0109]: type arguments are not allowed for this type
83
- --> $DIR/enum-variant-generic-args.rs:28 :16
83
+ --> $DIR/enum-variant-generic-args.rs:34 :16
84
84
|
85
85
LL | Self::<()>::SVariant::<()> { v: () };
86
86
| ^^ type argument not allowed
87
87
88
88
error[E0109]: type arguments are not allowed for this type
89
- --> $DIR/enum-variant-generic-args.rs:28 :32
89
+ --> $DIR/enum-variant-generic-args.rs:34 :32
90
90
|
91
91
LL | Self::<()>::SVariant::<()> { v: () };
92
92
| ^^ type argument not allowed
93
93
94
94
error[E0308]: mismatched types
95
- --> $DIR/enum-variant-generic-args.rs:28 :41
95
+ --> $DIR/enum-variant-generic-args.rs:34 :41
96
96
|
97
97
LL | Self::<()>::SVariant::<()> { v: () };
98
98
| ^^ expected type parameter, found ()
@@ -101,90 +101,156 @@ LL | Self::<()>::SVariant::<()> { v: () };
101
101
found type `()`
102
102
103
103
error[E0109]: type arguments are not allowed for this type
104
- --> $DIR/enum-variant-generic-args.rs:38:29
104
+ --> $DIR/enum-variant-generic-args.rs:41:26
105
+ |
106
+ LL | Self::UVariant::<()>;
107
+ | ^^ type argument not allowed
108
+
109
+ error[E0109]: type arguments are not allowed for this type
110
+ --> $DIR/enum-variant-generic-args.rs:43:16
111
+ |
112
+ LL | Self::<()>::UVariant;
113
+ | ^^ type argument not allowed
114
+
115
+ error[E0109]: type arguments are not allowed for this type
116
+ --> $DIR/enum-variant-generic-args.rs:45:16
117
+ |
118
+ LL | Self::<()>::UVariant::<()>;
119
+ | ^^ type argument not allowed
120
+
121
+ error[E0109]: type arguments are not allowed for this type
122
+ --> $DIR/enum-variant-generic-args.rs:45:32
123
+ |
124
+ LL | Self::<()>::UVariant::<()>;
125
+ | ^^ type argument not allowed
126
+
127
+ error[E0109]: type arguments are not allowed for this type
128
+ --> $DIR/enum-variant-generic-args.rs:54:29
105
129
|
106
130
LL | Enum::<()>::TSVariant::<()>(());
107
131
| ^^ type argument not allowed
108
132
109
133
error[E0109]: type arguments are not allowed for this type
110
- --> $DIR/enum-variant-generic-args.rs:41 :24
134
+ --> $DIR/enum-variant-generic-args.rs:57 :24
111
135
|
112
136
LL | Alias::TSVariant::<()>(());
113
137
| ^^ type argument not allowed
114
138
115
139
error[E0109]: type arguments are not allowed for this type
116
- --> $DIR/enum-variant-generic-args.rs:43 :30
140
+ --> $DIR/enum-variant-generic-args.rs:59 :30
117
141
|
118
142
LL | Alias::<()>::TSVariant::<()>(());
119
143
| ^^ type argument not allowed
120
144
121
145
error[E0109]: type arguments are not allowed for this type
122
- --> $DIR/enum-variant-generic-args.rs:46 :29
146
+ --> $DIR/enum-variant-generic-args.rs:62 :29
123
147
|
124
148
LL | AliasFixed::TSVariant::<()>(());
125
149
| ^^ type argument not allowed
126
150
127
151
error[E0107]: wrong number of type arguments: expected 0, found 1
128
- --> $DIR/enum-variant-generic-args.rs:48 :18
152
+ --> $DIR/enum-variant-generic-args.rs:64 :18
129
153
|
130
154
LL | AliasFixed::<()>::TSVariant(());
131
155
| ^^ unexpected type argument
132
156
133
157
error[E0107]: wrong number of type arguments: expected 0, found 1
134
- --> $DIR/enum-variant-generic-args.rs:50 :18
158
+ --> $DIR/enum-variant-generic-args.rs:66 :18
135
159
|
136
160
LL | AliasFixed::<()>::TSVariant::<()>(());
137
161
| ^^ unexpected type argument
138
162
139
163
error[E0109]: type arguments are not allowed for this type
140
- --> $DIR/enum-variant-generic-args.rs:50 :35
164
+ --> $DIR/enum-variant-generic-args.rs:66 :35
141
165
|
142
166
LL | AliasFixed::<()>::TSVariant::<()>(());
143
167
| ^^ type argument not allowed
144
168
145
169
error[E0109]: type arguments are not allowed for this type
146
- --> $DIR/enum-variant-generic-args.rs:56 :28
170
+ --> $DIR/enum-variant-generic-args.rs:72 :28
147
171
|
148
172
LL | Enum::<()>::SVariant::<()> { v: () };
149
173
| ^^ type argument not allowed
150
174
151
175
error[E0109]: type arguments are not allowed for this type
152
- --> $DIR/enum-variant-generic-args.rs:59 :23
176
+ --> $DIR/enum-variant-generic-args.rs:75 :23
153
177
|
154
178
LL | Alias::SVariant::<()> { v: () };
155
179
| ^^ type argument not allowed
156
180
157
181
error[E0109]: type arguments are not allowed for this type
158
- --> $DIR/enum-variant-generic-args.rs:61 :29
182
+ --> $DIR/enum-variant-generic-args.rs:77 :29
159
183
|
160
184
LL | Alias::<()>::SVariant::<()> { v: () };
161
185
| ^^ type argument not allowed
162
186
163
187
error[E0109]: type arguments are not allowed for this type
164
- --> $DIR/enum-variant-generic-args.rs:64 :28
188
+ --> $DIR/enum-variant-generic-args.rs:80 :28
165
189
|
166
190
LL | AliasFixed::SVariant::<()> { v: () };
167
191
| ^^ type argument not allowed
168
192
169
193
error[E0107]: wrong number of type arguments: expected 0, found 1
170
- --> $DIR/enum-variant-generic-args.rs:66 :18
194
+ --> $DIR/enum-variant-generic-args.rs:82 :18
171
195
|
172
196
LL | AliasFixed::<()>::SVariant { v: () };
173
197
| ^^ unexpected type argument
174
198
175
199
error[E0107]: wrong number of type arguments: expected 0, found 1
176
- --> $DIR/enum-variant-generic-args.rs:68 :18
200
+ --> $DIR/enum-variant-generic-args.rs:84 :18
177
201
|
178
202
LL | AliasFixed::<()>::SVariant::<()> { v: () };
179
203
| ^^ unexpected type argument
180
204
181
205
error[E0109]: type arguments are not allowed for this type
182
- --> $DIR/enum-variant-generic-args.rs:68 :34
206
+ --> $DIR/enum-variant-generic-args.rs:84 :34
183
207
|
184
208
LL | AliasFixed::<()>::SVariant::<()> { v: () };
185
209
| ^^ type argument not allowed
186
210
187
- error: aborting due to 28 previous errors
211
+ error[E0109]: type arguments are not allowed for this type
212
+ --> $DIR/enum-variant-generic-args.rs:90:28
213
+ |
214
+ LL | Enum::<()>::UVariant::<()>;
215
+ | ^^ type argument not allowed
216
+
217
+ error[E0109]: type arguments are not allowed for this type
218
+ --> $DIR/enum-variant-generic-args.rs:93:23
219
+ |
220
+ LL | Alias::UVariant::<()>;
221
+ | ^^ type argument not allowed
222
+
223
+ error[E0109]: type arguments are not allowed for this type
224
+ --> $DIR/enum-variant-generic-args.rs:95:29
225
+ |
226
+ LL | Alias::<()>::UVariant::<()>;
227
+ | ^^ type argument not allowed
228
+
229
+ error[E0109]: type arguments are not allowed for this type
230
+ --> $DIR/enum-variant-generic-args.rs:98:28
231
+ |
232
+ LL | AliasFixed::UVariant::<()>;
233
+ | ^^ type argument not allowed
234
+
235
+ error[E0107]: wrong number of type arguments: expected 0, found 1
236
+ --> $DIR/enum-variant-generic-args.rs:100:18
237
+ |
238
+ LL | AliasFixed::<()>::UVariant;
239
+ | ^^ unexpected type argument
240
+
241
+ error[E0107]: wrong number of type arguments: expected 0, found 1
242
+ --> $DIR/enum-variant-generic-args.rs:102:18
243
+ |
244
+ LL | AliasFixed::<()>::UVariant::<()>;
245
+ | ^^ unexpected type argument
246
+
247
+ error[E0109]: type arguments are not allowed for this type
248
+ --> $DIR/enum-variant-generic-args.rs:102:34
249
+ |
250
+ LL | AliasFixed::<()>::UVariant::<()>;
251
+ | ^^ type argument not allowed
252
+
253
+ error: aborting due to 39 previous errors
188
254
189
255
Some errors have detailed explanations: E0107, E0109, E0308.
190
256
For more information about an error, try `rustc --explain E0107`.
0 commit comments