rust/compiler
Esteban Küber 1b98d0ed13 Explain that in paths generics can't be set on both the enum and the variant
```
error[E0109]: type arguments are not allowed on enum `Enum` and tuple variant `TSVariant`
  --> $DIR/enum-variant-generic-args.rs:54:12
   |
LL |     Enum::<()>::TSVariant::<()>(());
   |     ----   ^^   ---------   ^^ type argument not allowed
   |     |           |
   |     |           not allowed on tuple variant `TSVariant`
   |     not allowed on enum `Enum`
   |
   = 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(());
   |
```

Fix #93993.
2025-02-11 23:30:07 +00:00
..
2025-02-08 22:12:13 +00:00
2025-02-08 22:12:13 +00:00
2025-02-08 22:12:13 +00:00
2025-02-08 22:12:13 +00:00
2025-02-08 22:12:13 +00:00
2025-02-08 22:12:13 +00:00
2025-02-08 22:12:13 +00:00
2025-02-08 22:12:13 +00:00
2025-02-08 22:12:13 +00:00
2025-02-08 22:12:13 +00:00
2025-02-08 22:12:13 +00:00
2025-02-08 22:12:13 +00:00
2025-02-08 22:12:13 +00:00
2025-02-08 22:12:13 +00:00
2025-02-08 22:12:13 +00:00
2025-02-08 22:12:13 +00:00
2025-02-08 22:12:13 +00:00
2025-02-08 22:12:13 +00:00
2025-02-08 22:12:13 +00:00
2025-02-08 22:28:21 +00:00