rust/tests/ui/rfc-2008-non-exhaustive/auxiliary/monovariants.rs

9 lines
128 B
Rust
Raw Normal View History

#[non_exhaustive]
pub enum NonExhaustiveMonovariant {
Variant(u32),
}
pub enum ExhaustiveMonovariant {
Variant(u32),
}