fork/rust

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

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
543 B15 linesraw
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`.