]> git.lizzy.rs Git - rust.git/blob - src/test/ui/not-copy-closure.stderr
Rollup merge of #92519 - ChrisDenton:command-maybe-verbatim, r=dtolnay
[rust.git] / src / test / ui / not-copy-closure.stderr
1 error[E0382]: use of moved value: `hello`
2   --> $DIR/not-copy-closure.rs:10:13
3    |
4 LL |     let b = hello;
5    |             ----- value moved here
6 LL |     let c = hello;
7    |             ^^^^^ value used here after move
8    |
9 note: closure cannot be moved more than once as it is not `Copy` due to moving the variable `a` out of its environment
10   --> $DIR/not-copy-closure.rs:6:9
11    |
12 LL |         a += 1;
13    |         ^
14
15 error: aborting due to previous error
16
17 For more information about this error, try `rustc --explain E0382`.