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
Rollup merge of #134981 - estebank:issue-93993, r=BoxyUwU
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
290
+
help: remove the generics arguments from one of the path segments
291
+
|
292
+
LL - Enum::<()>::TSVariant::<()>(());
293
+
LL + Enum::<()>::TSVariant(());
294
+
|
288
295
289
296
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
365
+
help: remove the generics arguments from one of the path segments
366
+
|
367
+
LL - Enum::<()>::SVariant::<()> { v: () };
368
+
LL + Enum::<()>::SVariant { v: () };
369
+
|
358
370
359
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
+
|
454
473
455
474
error[E0109]: type arguments are not allowed on this type
0 commit comments