]> git.lizzy.rs Git - rust.git/blob - tests/ui/unsafe/union_wild_or_wild.rs
Rollup merge of #106323 - starkat99:stabilize-f16c_target_feature, r=petrochenkov
[rust.git] / tests / 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 }