]> git.proxmox.com Git - rustc.git/blame - src/test/ui/chalkify/closure.stderr
New upstream version 1.61.0+dfsg1
[rustc.git] / src / test / ui / chalkify / closure.stderr
CommitLineData
f035d41b
XL
1error[E0382]: borrow of moved value: `b`
2 --> $DIR/closure.rs:28:5
3 |
4LL | let mut c = b;
5 | - value moved here
6...
7LL | b();
8 | ^ value borrowed here after move
9 |
10note: 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 |
13LL | a = 1;
14 | ^
ee023bcb
FG
15help: consider mutably borrowing `b`
16 |
17LL | let mut c = &mut b;
18 | ++++
f035d41b
XL
19
20error: aborting due to previous error
21
22For more information about this error, try `rustc --explain E0382`.