diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2025-02-12 10:46:36 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-02-12 10:46:36 +0100 |
| commit | 262079b52a62a5db95827aa30c0a98f1df4985ea (patch) | |
| tree | db96fda632dc40349ff6c3dcc966496fd44760fe /compiler/rustc_codegen_llvm/src/builder.rs | |
| parent | 33d92df3e6552a91ace2594eb7a2e1dc0c3e37fb (diff) | |
| parent | 23daa8c724cccc4ef75de60d271a50ef193abf0f (diff) | |
| download | rust-262079b52a62a5db95827aa30c0a98f1df4985ea.tar.gz rust-262079b52a62a5db95827aa30c0a98f1df4985ea.zip | |
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.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/builder.rs')
0 files changed, 0 insertions, 0 deletions
