summaryrefslogtreecommitdiffstats
path: root/tests/ui/unsafe/union_wild_or_wild.rs
blob: 52a0a7abf274b319c9d0acb19ad2ad787a6936b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// check-pass
// revisions: mir thir
// [thir]compile-flags: -Z thir-unsafeck

union X { a: i8 }

fn main() {
    let x = X { a: 5 };
    match x {
        X { a: _ | _ } => {},
    }
}