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

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

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