fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0382]: use of moved value: `a` 2 --> $DIR/issue-75904-move-closure-loop.rs:10:9 3 | 4LL | let mut a = NotCopy; 5 | ----- move occurs because `a` has type `NotCopy`, which does not implement the `Copy` trait 6LL | loop { 7LL | || { 8 | ^^ value moved into closure here, in previous iteration of loop 9LL | &mut a; 10LL | a; 11 | - use occurs due to use in closure 12 13error: aborting due to previous error 14 15For more information about this error, try `rustc --explain E0382`.