Error code E0731

An enum with the representation hint repr(transparent) had zero or more than one variants.

Erroneous code example:

fn main() {
enum Status { // error: transparent enum needs exactly one variant, but has 2

Because transparent enums are represented exactly like one of their variants at run time, said variant must be uniquely determined. If there is no variant, or if there are multiple variants, it is not clear how the enum should be represented.