]>
Commit | Line | Data |
---|---|---|
b7449926 | 1 | error[E0382]: use of moved value: `hello` |
48663c56 | 2 | --> $DIR/not-copy-closure.rs:10:13 |
b7449926 XL |
3 | | |
4 | LL | let b = hello; | |
48663c56 | 5 | | ----- value moved here |
532ac7d7 | 6 | LL | let c = hello; |
48663c56 | 7 | | ^^^^^ value used here after move |
b7449926 | 8 | | |
48663c56 | 9 | note: 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 | | |
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`. |