about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/builder.rs
diff options
context:
space:
mode:
authorEsteban Küber <esteban@kuber.com.ar>2024-12-31 18:51:36 +0000
committerEsteban Küber <esteban@kuber.com.ar>2025-02-11 23:30:07 +0000
commit1b98d0ed13e4a8ff8d94e6aee0f11fab07d6139a (patch)
tree732a5b048c68e77a78131b123e09930a2694b263 /compiler/rustc_codegen_llvm/src/builder.rs
parent06a24e98c612d72add1c3355282510513b153dcc (diff)
downloadrust-1b98d0ed13e4a8ff8d94e6aee0f11fab07d6139a.tar.gz
rust-1b98d0ed13e4a8ff8d94e6aee0f11fab07d6139a.zip
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.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/builder.rs')
0 files changed, 0 insertions, 0 deletions