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

11 lines
118 B
Rust

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