]>
Commit | Line | Data |
---|---|---|
0731742a | 1 | error[E0308]: mismatched types |
dc9dc135 | 2 | --> $DIR/enum-variant-generic-args.rs:13:25 |
0731742a | 3 | | |
60c5eb7d XL |
4 | LL | impl<T> Enum<T> { |
5 | | - this type parameter | |
6 | LL | fn ts_variant() { | |
0731742a | 7 | LL | Self::TSVariant(()); |
60c5eb7d | 8 | | ^^ expected type parameter `T`, found `()` |
0731742a | 9 | | |
60c5eb7d XL |
10 | = note: expected type parameter `T` |
11 | found unit type `()` | |
0731742a | 12 | |
532ac7d7 | 13 | error[E0109]: type arguments are not allowed for this type |
dc9dc135 | 14 | --> $DIR/enum-variant-generic-args.rs:15:27 |
0731742a XL |
15 | | |
16 | LL | Self::TSVariant::<()>(()); | |
17 | | ^^ type argument not allowed | |
18 | ||
532ac7d7 | 19 | error[E0109]: type arguments are not allowed for this type |
dc9dc135 | 20 | --> $DIR/enum-variant-generic-args.rs:17:16 |
0731742a XL |
21 | | |
22 | LL | Self::<()>::TSVariant(()); | |
23 | | ^^ type argument not allowed | |
24 | ||
25 | error[E0308]: mismatched types | |
dc9dc135 | 26 | --> $DIR/enum-variant-generic-args.rs:17:31 |
0731742a | 27 | | |
60c5eb7d XL |
28 | LL | impl<T> Enum<T> { |
29 | | - this type parameter | |
30 | ... | |
0731742a | 31 | LL | Self::<()>::TSVariant(()); |
60c5eb7d | 32 | | ^^ expected type parameter `T`, found `()` |
0731742a | 33 | | |
60c5eb7d XL |
34 | = note: expected type parameter `T` |
35 | found unit type `()` | |
0731742a | 36 | |
532ac7d7 | 37 | error[E0109]: type arguments are not allowed for this type |
dc9dc135 | 38 | --> $DIR/enum-variant-generic-args.rs:20:16 |
0731742a XL |
39 | | |
40 | LL | Self::<()>::TSVariant::<()>(()); | |
41 | | ^^ type argument not allowed | |
42 | ||
532ac7d7 | 43 | error[E0109]: type arguments are not allowed for this type |
dc9dc135 | 44 | --> $DIR/enum-variant-generic-args.rs:20:33 |
0731742a XL |
45 | | |
46 | LL | Self::<()>::TSVariant::<()>(()); | |
47 | | ^^ type argument not allowed | |
48 | ||
49 | error[E0308]: mismatched types | |
dc9dc135 | 50 | --> $DIR/enum-variant-generic-args.rs:26:29 |
0731742a | 51 | | |
60c5eb7d XL |
52 | LL | impl<T> Enum<T> { |
53 | | - this type parameter | |
54 | ... | |
0731742a | 55 | LL | Self::SVariant { v: () }; |
60c5eb7d | 56 | | ^^ expected type parameter `T`, found `()` |
0731742a | 57 | | |
60c5eb7d XL |
58 | = note: expected type parameter `T` |
59 | found unit type `()` | |
0731742a | 60 | |
532ac7d7 | 61 | error[E0109]: type arguments are not allowed for this type |
dc9dc135 | 62 | --> $DIR/enum-variant-generic-args.rs:28:26 |
0731742a XL |
63 | | |
64 | LL | Self::SVariant::<()> { v: () }; | |
65 | | ^^ type argument not allowed | |
66 | ||
67 | error[E0308]: mismatched types | |
dc9dc135 | 68 | --> $DIR/enum-variant-generic-args.rs:28:35 |
0731742a | 69 | | |
60c5eb7d XL |
70 | LL | impl<T> Enum<T> { |
71 | | - this type parameter | |
72 | ... | |
0731742a | 73 | LL | Self::SVariant::<()> { v: () }; |
60c5eb7d | 74 | | ^^ expected type parameter `T`, found `()` |
0731742a | 75 | | |
60c5eb7d XL |
76 | = note: expected type parameter `T` |
77 | found unit type `()` | |
0731742a | 78 | |
532ac7d7 | 79 | error[E0109]: type arguments are not allowed for this type |
dc9dc135 | 80 | --> $DIR/enum-variant-generic-args.rs:31:16 |
0731742a XL |
81 | | |
82 | LL | Self::<()>::SVariant { v: () }; | |
83 | | ^^ type argument not allowed | |
84 | ||
85 | error[E0308]: mismatched types | |
dc9dc135 | 86 | --> $DIR/enum-variant-generic-args.rs:31:35 |
0731742a | 87 | | |
60c5eb7d XL |
88 | LL | impl<T> Enum<T> { |
89 | | - this type parameter | |
90 | ... | |
0731742a | 91 | LL | Self::<()>::SVariant { v: () }; |
60c5eb7d | 92 | | ^^ expected type parameter `T`, found `()` |
0731742a | 93 | | |
60c5eb7d XL |
94 | = note: expected type parameter `T` |
95 | found unit type `()` | |
0731742a | 96 | |
532ac7d7 | 97 | error[E0109]: type arguments are not allowed for this type |
dc9dc135 | 98 | --> $DIR/enum-variant-generic-args.rs:34:16 |
0731742a XL |
99 | | |
100 | LL | Self::<()>::SVariant::<()> { v: () }; | |
101 | | ^^ type argument not allowed | |
102 | ||
532ac7d7 | 103 | error[E0109]: type arguments are not allowed for this type |
dc9dc135 | 104 | --> $DIR/enum-variant-generic-args.rs:34:32 |
0731742a XL |
105 | | |
106 | LL | Self::<()>::SVariant::<()> { v: () }; | |
107 | | ^^ type argument not allowed | |
108 | ||
109 | error[E0308]: mismatched types | |
dc9dc135 | 110 | --> $DIR/enum-variant-generic-args.rs:34:41 |
0731742a | 111 | | |
60c5eb7d XL |
112 | LL | impl<T> Enum<T> { |
113 | | - this type parameter | |
114 | ... | |
0731742a | 115 | LL | Self::<()>::SVariant::<()> { v: () }; |
60c5eb7d | 116 | | ^^ expected type parameter `T`, found `()` |
0731742a | 117 | | |
60c5eb7d XL |
118 | = note: expected type parameter `T` |
119 | found unit type `()` | |
0731742a | 120 | |
532ac7d7 | 121 | error[E0109]: type arguments are not allowed for this type |
dc9dc135 XL |
122 | --> $DIR/enum-variant-generic-args.rs:41:26 |
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:43:16 | |
129 | | | |
130 | LL | Self::<()>::UVariant; | |
131 | | ^^ type argument not allowed | |
132 | ||
133 | error[E0109]: type arguments are not allowed for this type | |
134 | --> $DIR/enum-variant-generic-args.rs:45:16 | |
135 | | | |
136 | LL | Self::<()>::UVariant::<()>; | |
137 | | ^^ type argument not allowed | |
138 | ||
139 | error[E0109]: type arguments are not allowed for this type | |
140 | --> $DIR/enum-variant-generic-args.rs:45:32 | |
141 | | | |
142 | LL | Self::<()>::UVariant::<()>; | |
143 | | ^^ type argument not allowed | |
144 | ||
145 | error[E0109]: type arguments are not allowed for this type | |
146 | --> $DIR/enum-variant-generic-args.rs:54:29 | |
0731742a XL |
147 | | |
148 | LL | Enum::<()>::TSVariant::<()>(()); | |
149 | | ^^ type argument not allowed | |
150 | ||
532ac7d7 | 151 | error[E0109]: type arguments are not allowed for this type |
dc9dc135 | 152 | --> $DIR/enum-variant-generic-args.rs:57:24 |
0731742a XL |
153 | | |
154 | LL | Alias::TSVariant::<()>(()); | |
155 | | ^^ type argument not allowed | |
156 | ||
532ac7d7 | 157 | error[E0109]: type arguments are not allowed for this type |
dc9dc135 | 158 | --> $DIR/enum-variant-generic-args.rs:59:30 |
0731742a XL |
159 | | |
160 | LL | Alias::<()>::TSVariant::<()>(()); | |
161 | | ^^ type argument not allowed | |
162 | ||
532ac7d7 | 163 | error[E0109]: type arguments are not allowed for this type |
dc9dc135 | 164 | --> $DIR/enum-variant-generic-args.rs:62:29 |
0731742a XL |
165 | | |
166 | LL | AliasFixed::TSVariant::<()>(()); | |
167 | | ^^ type argument not allowed | |
168 | ||
5869c6ff XL |
169 | error[E0107]: this type alias takes 0 type arguments but 1 type argument was supplied |
170 | --> $DIR/enum-variant-generic-args.rs:64:5 | |
0731742a XL |
171 | | |
172 | LL | AliasFixed::<()>::TSVariant(()); | |
5869c6ff XL |
173 | | ^^^^^^^^^^------ help: remove these generics |
174 | | | | |
175 | | expected 0 type arguments | |
176 | | | |
177 | note: type alias defined here, with 0 type parameters | |
178 | --> $DIR/enum-variant-generic-args.rs:9:6 | |
179 | | | |
180 | LL | type AliasFixed = Enum<()>; | |
181 | | ^^^^^^^^^^ | |
0731742a | 182 | |
5869c6ff XL |
183 | error[E0107]: this type alias takes 0 type arguments but 1 type argument was supplied |
184 | --> $DIR/enum-variant-generic-args.rs:66:5 | |
0731742a XL |
185 | | |
186 | LL | AliasFixed::<()>::TSVariant::<()>(()); | |
5869c6ff XL |
187 | | ^^^^^^^^^^------ help: remove these generics |
188 | | | | |
189 | | expected 0 type arguments | |
190 | | | |
191 | note: type alias defined here, with 0 type parameters | |
192 | --> $DIR/enum-variant-generic-args.rs:9:6 | |
193 | | | |
194 | LL | type AliasFixed = Enum<()>; | |
195 | | ^^^^^^^^^^ | |
0731742a | 196 | |
532ac7d7 | 197 | error[E0109]: type arguments are not allowed for this type |
dc9dc135 | 198 | --> $DIR/enum-variant-generic-args.rs:66:35 |
0731742a XL |
199 | | |
200 | LL | AliasFixed::<()>::TSVariant::<()>(()); | |
201 | | ^^ type argument not allowed | |
202 | ||
532ac7d7 | 203 | error[E0109]: type arguments are not allowed for this type |
dc9dc135 | 204 | --> $DIR/enum-variant-generic-args.rs:72:28 |
0731742a XL |
205 | | |
206 | LL | Enum::<()>::SVariant::<()> { v: () }; | |
207 | | ^^ type argument not allowed | |
208 | ||
532ac7d7 | 209 | error[E0109]: type arguments are not allowed for this type |
dc9dc135 | 210 | --> $DIR/enum-variant-generic-args.rs:75:23 |
0731742a XL |
211 | | |
212 | LL | Alias::SVariant::<()> { v: () }; | |
213 | | ^^ type argument not allowed | |
214 | ||
532ac7d7 | 215 | error[E0109]: type arguments are not allowed for this type |
dc9dc135 | 216 | --> $DIR/enum-variant-generic-args.rs:77:29 |
0731742a XL |
217 | | |
218 | LL | Alias::<()>::SVariant::<()> { v: () }; | |
219 | | ^^ type argument not allowed | |
220 | ||
532ac7d7 | 221 | error[E0109]: type arguments are not allowed for this type |
dc9dc135 | 222 | --> $DIR/enum-variant-generic-args.rs:80:28 |
0731742a XL |
223 | | |
224 | LL | AliasFixed::SVariant::<()> { v: () }; | |
225 | | ^^ type argument not allowed | |
226 | ||
5869c6ff XL |
227 | error[E0107]: this type alias takes 0 type arguments but 1 type argument was supplied |
228 | --> $DIR/enum-variant-generic-args.rs:82:5 | |
0731742a XL |
229 | | |
230 | LL | AliasFixed::<()>::SVariant { v: () }; | |
5869c6ff XL |
231 | | ^^^^^^^^^^------ help: remove these generics |
232 | | | | |
233 | | expected 0 type arguments | |
234 | | | |
235 | note: type alias defined here, with 0 type parameters | |
236 | --> $DIR/enum-variant-generic-args.rs:9:6 | |
237 | | | |
238 | LL | type AliasFixed = Enum<()>; | |
239 | | ^^^^^^^^^^ | |
0731742a | 240 | |
5869c6ff XL |
241 | error[E0107]: this type alias takes 0 type arguments but 1 type argument was supplied |
242 | --> $DIR/enum-variant-generic-args.rs:84:5 | |
0731742a XL |
243 | | |
244 | LL | AliasFixed::<()>::SVariant::<()> { v: () }; | |
5869c6ff XL |
245 | | ^^^^^^^^^^------ help: remove these generics |
246 | | | | |
247 | | expected 0 type arguments | |
248 | | | |
249 | note: type alias defined here, with 0 type parameters | |
250 | --> $DIR/enum-variant-generic-args.rs:9:6 | |
251 | | | |
252 | LL | type AliasFixed = Enum<()>; | |
253 | | ^^^^^^^^^^ | |
0731742a | 254 | |
532ac7d7 | 255 | error[E0109]: type arguments are not allowed for this type |
dc9dc135 | 256 | --> $DIR/enum-variant-generic-args.rs:84:34 |
0731742a XL |
257 | | |
258 | LL | AliasFixed::<()>::SVariant::<()> { v: () }; | |
259 | | ^^ type argument not allowed | |
260 | ||
dc9dc135 XL |
261 | error[E0109]: type arguments are not allowed for this type |
262 | --> $DIR/enum-variant-generic-args.rs:90:28 | |
263 | | | |
264 | LL | Enum::<()>::UVariant::<()>; | |
265 | | ^^ type argument not allowed | |
266 | ||
267 | error[E0109]: type arguments are not allowed for this type | |
268 | --> $DIR/enum-variant-generic-args.rs:93:23 | |
269 | | | |
270 | LL | Alias::UVariant::<()>; | |
271 | | ^^ type argument not allowed | |
272 | ||
273 | error[E0109]: type arguments are not allowed for this type | |
274 | --> $DIR/enum-variant-generic-args.rs:95:29 | |
275 | | | |
276 | LL | Alias::<()>::UVariant::<()>; | |
277 | | ^^ type argument not allowed | |
278 | ||
279 | error[E0109]: type arguments are not allowed for this type | |
280 | --> $DIR/enum-variant-generic-args.rs:98:28 | |
281 | | | |
282 | LL | AliasFixed::UVariant::<()>; | |
283 | | ^^ type argument not allowed | |
284 | ||
5869c6ff XL |
285 | error[E0107]: this type alias takes 0 type arguments but 1 type argument was supplied |
286 | --> $DIR/enum-variant-generic-args.rs:100:5 | |
dc9dc135 XL |
287 | | |
288 | LL | AliasFixed::<()>::UVariant; | |
5869c6ff XL |
289 | | ^^^^^^^^^^------ help: remove these generics |
290 | | | | |
291 | | expected 0 type arguments | |
292 | | | |
293 | note: type alias defined here, with 0 type parameters | |
294 | --> $DIR/enum-variant-generic-args.rs:9:6 | |
295 | | | |
296 | LL | type AliasFixed = Enum<()>; | |
297 | | ^^^^^^^^^^ | |
dc9dc135 | 298 | |
5869c6ff XL |
299 | error[E0107]: this type alias takes 0 type arguments but 1 type argument was supplied |
300 | --> $DIR/enum-variant-generic-args.rs:102:5 | |
dc9dc135 XL |
301 | | |
302 | LL | AliasFixed::<()>::UVariant::<()>; | |
5869c6ff XL |
303 | | ^^^^^^^^^^------ help: remove these generics |
304 | | | | |
305 | | expected 0 type arguments | |
306 | | | |
307 | note: type alias defined here, with 0 type parameters | |
308 | --> $DIR/enum-variant-generic-args.rs:9:6 | |
309 | | | |
310 | LL | type AliasFixed = Enum<()>; | |
311 | | ^^^^^^^^^^ | |
dc9dc135 XL |
312 | |
313 | error[E0109]: type arguments are not allowed for this type | |
314 | --> $DIR/enum-variant-generic-args.rs:102:34 | |
315 | | | |
316 | LL | AliasFixed::<()>::UVariant::<()>; | |
317 | | ^^ type argument not allowed | |
318 | ||
319 | error: aborting due to 39 previous errors | |
0731742a | 320 | |
48663c56 | 321 | Some errors have detailed explanations: E0107, E0109, E0308. |
0731742a | 322 | For more information about an error, try `rustc --explain E0107`. |