1 2 3 4 5 6 7 8 9 10
#[non_exhaustive] pub enum E1 {} #[non_exhaustive] pub enum E2 { A, B } #[non_exhaustive] pub enum E3 { C } pub enum E4 { D }