summaryrefslogtreecommitdiffstats
path: root/tests/ui/mir/mir_boxing.rs
blob: 83e1cfb640aa2f1671bcf4bf5976e2cffaf6114c (plain)
1
2
3
4
5
6
7
8
9
10
// run-pass
#![feature(box_syntax)]

fn test() -> Box<i32> {
    box 42
}

fn main() {
    assert_eq!(*test(), 42);
}