rust/src/test/ui/binding/match-unique-bind.rs
2019-07-27 18:56:16 +03:00

12 lines
187 B
Rust

// run-pass
#![feature(box_patterns)]
#![feature(box_syntax)]
pub fn main() {
match box 100 {
box x => {
println!("{}", x);
assert_eq!(x, 100);
}
}
}