]> git.proxmox.com Git - rustc.git/blob - tests/ui/borrowck/issue-101119.stderr
New upstream version 1.76.0+dfsg1
[rustc.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 1 previous error
14
15 For more information about this error, try `rustc --explain E0382`.