Fix E0794: Invalid discriminant value for enum in Rust
Compiler error E0794 occurs when attempting to create an enum variant with a discriminant value that is invalid for the enum's representation or that does not exist in the enum definition.
2 articles
Compiler error E0794 occurs when attempting to create an enum variant with a discriminant value that is invalid for the enum's representation or that does not exist in the enum definition.
E0732 occurs when using #[derive] macro on an enum with zero variants, which cannot be instantiated or have traits derived.