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


fn main() {
    let _ = || {
        let x: Box<isize> = Box::new(25);

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