rust/src/test/ui/mir/mir_boxing.rs
2019-07-27 18:56:16 +03:00

11 lines
118 B
Rust

// run-pass
#![feature(box_syntax)]
fn test() -> Box<i32> {
box 42
}
fn main() {
assert_eq!(*test(), 42);
}