rust/tests/ui/unsafe/union_wild_or_wild.rs
Matthew Jasper 982b49494e Remove revisions for THIR unsafeck
This is to make the diff when stabilizing it easier to review.
2024-01-05 09:30:27 +00:00

10 lines
121 B
Rust

// check-pass
union X { a: i8 }
fn main() {
let x = X { a: 5 };
match x {
X { a: _ | _ } => {},
}
}