]>
Commit | Line | Data |
---|---|---|
9c376795 FG |
1 | error[E0731]: transparent enum needs exactly one variant, but has 2 |
2 | --> $DIR/transparent-enum-too-many-variants.rs:4:1 | |
3 | | | |
4 | LL | enum Foo { | |
5 | | ^^^^^^^^ needs exactly one variant, but has 2 | |
6 | LL | A(u8), B(u8), | |
7 | | - - too many variants in `Foo` | |
49aad941 FG |
8 | | | |
9 | | variant here | |
9c376795 | 10 | |
4b012472 | 11 | error: aborting due to 1 previous error |
9c376795 FG |
12 | |
13 | For more information about this error, try `rustc --explain E0731`. |