]> git.lizzy.rs Git - rust.git/blob - src/test/ui/unsafe/union_wild_or_wild.rs
Rollup merge of #103033 - alyssais:pkg-config, r=joshtriplett
[rust.git] / src / test / ui / unsafe / union_wild_or_wild.rs
1 // check-pass
2 // revisions: mir thir
3 // [thir]compile-flags: -Z thir-unsafeck
4
5 union X { a: i8 }
6
7 fn main() {
8     let x = X { a: 5 };
9     match x {
10         X { a: _ | _ } => {},
11     }
12 }