rust/tests/ui/repr/transparent-enum-too-many-variants.stderr
Obei Sideg 06ff310cf9 Migrate rustc_hir_analysis to session diagnostic
Part 4: Finishing `check/mod.rs` file
2023-04-21 23:50:03 +03:00

14 lines
402 B
Plaintext

error[E0731]: transparent enum needs exactly one variant, but has 2
--> $DIR/transparent-enum-too-many-variants.rs:4:1
|
LL | enum Foo {
| ^^^^^^^^ needs exactly one variant, but has 2
LL | A(u8), B(u8),
| - - too many variants in `Foo`
| |
| variant here
error: aborting due to previous error
For more information about this error, try `rustc --explain E0731`.