about summary refs log tree commit diff
path: root/tests/ui/unsafe/union_wild_or_wild.rs
blob: 3f6211ce792fc3f2fd292bdb94f37eaaaaf63069 (plain)
1
2
3
4
5
6
7
8
9
//@ check-pass
union X { a: i8 }

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