You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Explain that in paths generics can't be set on both the enum and the variant
```
error[E0109]: type arguments are not allowed on tuple variant `TSVariant`
--> $DIR/enum-variant-generic-args.rs:54:29
|
LL | Enum::<()>::TSVariant::<()>(());
| --------- ^^ type argument not allowed
| |
| not allowed on tuple variant `TSVariant`
|
= note: generic arguments are not allowed on both an enum and its variant's path segments simultaneously; they are only valid in one place or the other
help: remove the generics arguments from one of the path segments
|
LL - Enum::<()>::TSVariant::<()>(());
LL + Enum::TSVariant::<()>(());
|
LL - Enum::<()>::TSVariant::<()>(());
LL + Enum::<()>::TSVariant(());
|
```
Fix#93993.
= note: generic arguments are not allowed on both an enum and its variant's path segments simultaneously; they are only valid in one place or the other
284
+
help: remove the generics arguments from one of the path segments
285
+
|
286
+
LL - Enum::<()>::TSVariant::<()>(());
287
+
LL + Enum::TSVariant::<()>(());
288
+
|
289
+
LL - Enum::<()>::TSVariant::<()>(());
290
+
LL + Enum::<()>::TSVariant(());
291
+
|
282
292
283
293
error[E0109]: type arguments are not allowed on this type
= note: generic arguments are not allowed on both an enum and its variant's path segments simultaneously; they are only valid in one place or the other
362
+
help: remove the generics arguments from one of the path segments
363
+
|
364
+
LL - Enum::<()>::SVariant::<()> { v: () };
365
+
LL + Enum::SVariant::<()> { v: () };
366
+
|
367
+
LL - Enum::<()>::SVariant::<()> { v: () };
368
+
LL + Enum::<()>::SVariant { v: () };
369
+
|
352
370
353
371
error[E0109]: type arguments are not allowed on this type
= note: generic arguments are not allowed on both an enum and its variant's path segments simultaneously; they are only valid in one place or the other
468
+
help: remove the generics arguments from one of the path segments
469
+
|
470
+
LL - Enum::<()>::UVariant::<()>;
471
+
LL + Enum::UVariant::<()>;
472
+
|
473
+
LL - Enum::<()>::UVariant::<()>;
474
+
LL + Enum::<()>::UVariant;
475
+
|
448
476
449
477
error[E0109]: type arguments are not allowed on this type
0 commit comments