summaryrefslogtreecommitdiffstats
path: root/tests/ui/repr/transparent-enum-too-many-variants.stderr
blob: fb44757efaf13694c2fbb10cb6e837ab4df47efe (plain)
1
2
3
4
5
6
7
8
9
10
11
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`

error: aborting due to previous error

For more information about this error, try `rustc --explain E0731`.