summaryrefslogtreecommitdiffstats
path: root/tests/ui/unique/unique-fn-ret.rs
blob: 773a9bce1adb04e010d9eb8214283cb3b54365f1 (plain)
1
2
3
4
5
6
7
8
9
// run-pass

fn f() -> Box<isize> {
    Box::new(100)
}

pub fn main() {
    assert_eq!(f(), Box::new(100));
}