]> git.lizzy.rs Git - rust.git/blob - src/test/ui/chalkify/closure.stderr
Rollup merge of #103439 - Nilstrieb:help-me-with-my-macro, r=estebank
[rust.git] / src / test / ui / chalkify / closure.stderr
1 error[E0382]: borrow of moved value: `b`
2   --> $DIR/closure.rs:27: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:20:9
12    |
13 LL |         a = 1;
14    |         ^
15 help: consider mutably borrowing `b`
16    |
17 LL |     let mut c = &mut b;
18    |                 ++++
19
20 error: aborting due to previous error
21
22 For more information about this error, try `rustc --explain E0382`.