fork/rust

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

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

master
627 B21 linesraw
1error[E0382]: use of moved value: `hello`
2  --> $DIR/not-copy-closure.rs:10:13
3   |
4LL |     let b = hello;
5   |             ----- value moved here
6LL |     let c = hello;
7   |             ^^^^^ value used here after move
8   |
9note: closure cannot be moved more than once as it is not `Copy` due to moving the variable `a` out of its environment
10  --> $DIR/not-copy-closure.rs:6:9
11   |
12LL |         a += 1;
13   |         ^
14help: consider mutably borrowing `hello`
15   |
16LL |     let b = &mut hello;
17   |             ++++
18
19error: aborting due to previous error
20
21For more information about this error, try `rustc --explain E0382`.