rust/tests/ui/box/unit/unique-pat.rs
2024-02-16 20:02:50 +00:00

15 lines
170 B
Rust

//@ run-pass
#![feature(box_patterns)]
fn simple() {
match Box::new(true) {
box true => { }
_ => { panic!(); }
}
}
pub fn main() {
simple();
}