rust/tests/ui/unique/unique-pat.rs
2023-01-11 09:32:08 +00:00

15 lines
169 B
Rust

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