2022-12-27 20:28:02 -06:00
|
|
|
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`
|
2023-04-14 10:02:41 -05:00
|
|
|
| |
|
|
|
|
| variant here
|
2022-12-27 20:28:02 -06:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0731`.
|