fork/rust

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

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

master
610 B15 linesraw
1error[E0382]: use of moved value: `state`
2  --> $DIR/issue-101119.rs:7:14
3   |
4LL | fn fill_memory_blocks_mt(state: &mut State) {
5   |                          ----- move occurs because `state` has type `&mut State`, which does not implement the `Copy` trait
6LL |     loop {
7LL |         once(move || {
8   |              ^^^^^^^ value moved into closure here, in previous iteration of loop
9LL |
10LL |             fill_segment(state);
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`.