summary refs log tree commit diff
path: root/src/test/ui/feature-gates/feature-gate-non_exhaustive.rs
blob: b3e2e3d95f536b8c4e0b64f1a11b146e51b6261e (plain)
1
2
3
4
5
6
7
8
9
10
//#![feature(non_exhaustive)]

#[non_exhaustive] //~ERROR non exhaustive is an experimental feature (see issue #44109)
pub enum NonExhaustiveEnum {
    Unit,
    Tuple(u32),
    Struct { field: u32 }
}

fn main() { }