rust/tests/ui/type-alias-enum-variants
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
..
enum-variant-generic-args-pass.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
enum-variant-generic-args.rs Explain that in paths generics can't be set on both the enum and the variant 2025-02-11 23:30:07 +00:00
enum-variant-generic-args.stderr Explain that in paths generics can't be set on both the enum and the variant 2025-02-11 23:30:07 +00:00
enum-variant-priority-higher-than-other-inherent.rs
enum-variant-priority-higher-than-other-inherent.stderr Show diff suggestion format on verbose replacement 2025-02-10 20:21:39 +00:00
enum-variant-priority-lint-ambiguous_associated_items.rs Stop using hir_ty_to_ty in rustc_privacy 2024-02-07 14:59:26 +00:00
enum-variant-priority-lint-ambiguous_associated_items.stderr Stop using hir_ty_to_ty in rustc_privacy 2024-02-07 14:59:26 +00:00
incorrect-variant-form-through-alias-caught.rs
incorrect-variant-form-through-alias-caught.stderr Show diff suggestion format on verbose replacement 2025-02-10 20:21:39 +00:00
incorrect-variant-form-through-Self-issue-58006.rs
incorrect-variant-form-through-Self-issue-58006.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-57866.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-61801-path-pattern-can-infer.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-63151-dead-code-lint-fields-in-patterns.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
no-type-application-on-aliased-enum-variant.rs
no-type-application-on-aliased-enum-variant.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
resolve-to-enum-variant-in-type-namespace-and-error.rs
resolve-to-enum-variant-in-type-namespace-and-error.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
self-in-enum-definition.rs
self-in-enum-definition.stderr Update documentation 2024-03-20 09:49:57 +00:00
type-alias-enum-variants-pass.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00