]> git.proxmox.com Git - rustc.git/blame - src/test/ui/not-copy-closure.stderr
New upstream version 1.49.0+dfsg1
[rustc.git] / src / test / ui / not-copy-closure.stderr
CommitLineData
b7449926 1error[E0382]: use of moved value: `hello`
48663c56 2 --> $DIR/not-copy-closure.rs:10:13
b7449926
XL
3 |
4LL | let b = hello;
48663c56 5 | ----- value moved here
532ac7d7 6LL | let c = hello;
48663c56 7 | ^^^^^ value used here after move
b7449926 8 |
48663c56 9note: closure cannot be moved more than once as it is not `Copy` due to moving the variable `a` out of its environment
0731742a 10 --> $DIR/not-copy-closure.rs:6:9
b7449926
XL
11 |
12LL | a += 1;
13 | ^
14
15error: aborting due to previous error
16
17For more information about this error, try `rustc --explain E0382`.