12 lines
187 B
Rust
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);
|
|
}
|
|
}
|
|
}
|