]> git.lizzy.rs Git - rust.git/blob - tests/ui/closures/2229_closure_analysis/diagnostics/closure-origin-tuple-diagnostics-1.stderr
Auto merge of #106227 - bryangarza:ctfe-limit, r=oli-obk
[rust.git] / tests / ui / closures / 2229_closure_analysis / diagnostics / closure-origin-tuple-diagnostics-1.stderr
1 error[E0382]: use of moved value: `hello`
2   --> $DIR/closure-origin-tuple-diagnostics-1.rs:12: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 `x.0` out of its environment
10   --> $DIR/closure-origin-tuple-diagnostics-1.rs:8:9
11    |
12 LL |         x.0 += 1;
13    |         ^^^
14 help: consider mutably borrowing `hello`
15    |
16 LL |     let b = &mut hello;
17    |             ++++
18
19 error: aborting due to previous error
20
21 For more information about this error, try `rustc --explain E0382`.