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