summaryrefslogtreecommitdiffstats
path: root/tests/ui/box/unit/unique-fn-arg-move.rs
blob: 6d42df218fbfd03cde2deec15d7458e1065443b8 (plain)
1
2
3
4
5
6
7
8
9
10
// run-pass

fn f(i: Box<isize>) {
    assert_eq!(*i, 100);
}

pub fn main() {
    let i = Box::new(100);
    f(i);
}