1 2 3 4 5 6 7
#![crate_type = "rlib"] pub enum NonExhaustiveVariants { #[non_exhaustive] Unit, #[non_exhaustive] Tuple(u32), #[non_exhaustive] Struct { field: u32 } }