rustc/tests/ui/box/unit/unique-pat.rs
2024-06-21 09:39:33 +02:00

15 lines
170 B
Rust

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