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: _ | _ } => {}, } }