fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #69444 - pietroalbini:stable-next-final-v2-new, r=pietroalbinif3e1a954d2e

1.41.1
452 B12 linesraw
1error[E0382]: use of moved value: `x`
2  --> $DIR/liveness-move-call-arg.rs:9:14
3   |
4LL |     let x: Box<isize> = box 25;
5   |         - move occurs because `x` has type `std::boxed::Box<isize>`, which does not implement the `Copy` trait
6LL |     loop {
7LL |         take(x);
8   |              ^ value moved here, in previous iteration of loop
9
10error: aborting due to previous error
11
12For more information about this error, try `rustc --explain E0382`.