summaryrefslogtreecommitdiffstats
path: root/src/test/ui/liveness/liveness-move-call-arg.rs
blob: 1bc2ea6b9fef6914ef9fb827a028adf0bbceaf8d (plain)
1
2
3
4
5
6
7
8
9
10
11
fn take(_x: Box<isize>) {}


fn main() {

    let x: Box<isize> = Box::new(25);

    loop {
        take(x); //~ ERROR use of moved value: `x`
    }
}