]> git.lizzy.rs Git - rust.git/blob - tests/ui/borrowck/issue-101119.stderr
Rollup merge of #106644 - alexcrichton:update-wasi-toolchain, r=cuviper
[rust.git] / tests / ui / borrowck / issue-101119.stderr
1 error[E0382]: use of moved value: `state`
2   --> $DIR/issue-101119.rs:7:14
3    |
4 LL | fn fill_memory_blocks_mt(state: &mut State) {
5    |                          ----- move occurs because `state` has type `&mut State`, which does not implement the `Copy` trait
6 LL |     loop {
7 LL |         once(move || {
8    |              ^^^^^^^ value moved into closure here, in previous iteration of loop
9 LL |
10 LL |             fill_segment(state);
11    |                          ----- use occurs due to use in closure
12
13 error: aborting due to previous error
14
15 For more information about this error, try `rustc --explain E0382`.