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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

8 lines
166 B
Rust
Raw Normal View History

2017-11-03 14:15:15 -05:00
#![crate_type = "rlib"]
pub enum NonExhaustiveVariants {
#[non_exhaustive] Unit,
#[non_exhaustive] Tuple(u32),
#[non_exhaustive] Struct { field: u32 }
}