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
Remove some the spans pointing at the enum in the path and its generic args
```
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(());
|
```
error[E0109]: type arguments are not allowed on enum `Enum` and tuple variant `TSVariant`
282
-
--> $DIR/enum-variant-generic-args.rs:54:12
281
+
error[E0109]: type arguments are not allowed on tuple variant `TSVariant`
282
+
--> $DIR/enum-variant-generic-args.rs:54:29
283
283
|
284
284
LL | Enum::<()>::TSVariant::<()>(());
285
-
| ---- ^^ --------- ^^ type argument not allowed
286
-
| | |
287
-
| | not allowed on tuple variant `TSVariant`
288
-
| not allowed on enum `Enum`
285
+
| --------- ^^ type argument not allowed
286
+
| |
287
+
| not allowed on tuple variant `TSVariant`
289
288
|
290
289
= 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
291
290
help: remove the generics arguments from one of the path segments
error[E0109]: type arguments are not allowed on enum `Enum` and variant `SVariant`
358
-
--> $DIR/enum-variant-generic-args.rs:72:12
356
+
error[E0109]: type arguments are not allowed on variant `SVariant`
357
+
--> $DIR/enum-variant-generic-args.rs:72:28
359
358
|
360
359
LL | Enum::<()>::SVariant::<()> { v: () };
361
-
| ---- ^^ -------- ^^ type argument not allowed
362
-
| | |
363
-
| | not allowed on variant `SVariant`
364
-
| not allowed on enum `Enum`
360
+
| -------- ^^ type argument not allowed
361
+
| |
362
+
| not allowed on variant `SVariant`
365
363
|
366
364
= 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
367
365
help: remove the generics arguments from one of the path segments
error[E0109]: type arguments are not allowed on enum `Enum` and unit variant `UVariant`
462
-
--> $DIR/enum-variant-generic-args.rs:90:12
459
+
error[E0109]: type arguments are not allowed on unit variant `UVariant`
460
+
--> $DIR/enum-variant-generic-args.rs:90:28
463
461
|
464
462
LL | Enum::<()>::UVariant::<()>;
465
-
| ---- ^^ -------- ^^ type argument not allowed
466
-
| | |
467
-
| | not allowed on unit variant `UVariant`
468
-
| not allowed on enum `Enum`
463
+
| -------- ^^ type argument not allowed
464
+
| |
465
+
| not allowed on unit variant `UVariant`
469
466
|
470
467
= 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
471
468
help: remove the generics arguments from one of the path segments
0 commit comments