]> git.lizzy.rs Git - rust.git/blob - tests/ui/liveness/liveness-move-call-arg.rs
Rollup merge of #106648 - Nilstrieb:poly-cleanup, r=compiler-errors
[rust.git] / tests / ui / liveness / liveness-move-call-arg.rs
1 fn take(_x: Box<isize>) {}
2
3
4 fn main() {
5
6     let x: Box<isize> = Box::new(25);
7
8     loop {
9         take(x); //~ ERROR use of moved value: `x`
10     }
11 }