summaryrefslogtreecommitdiffstats
path: root/tests/ui/rfc-2008-non-exhaustive/auxiliary/variants.rs
blob: 02672d5454e57bf82cdb1c2c5d13852d1e2c90f2 (plain)
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 }
}