about summary refs log tree commit diff
path: root/tests/ui/moves/moves-based-on-type-tuple.rs
blob: c9951a930225e2d50ccbee33eb0fcf14fc542b45 (plain)
1
2
3
4
5
6
7
8
9
10
fn dup(x: Box<isize>) -> Box<(Box<isize>,Box<isize>)> {


    Box::new((x, x))
    //~^ ERROR use of moved value: `x` [E0382]
}

fn main() {
    dup(Box::new(3));
}