]> git.proxmox.com Git - rustc.git/blob - src/test/ui/closures/2229_closure_analysis/diagnostics/closure-origin-single-variant-diagnostics.stderr
New upstream version 1.55.0+dfsg1
[rustc.git] / src / test / ui / closures / 2229_closure_analysis / diagnostics / closure-origin-single-variant-diagnostics.stderr
1 error[E0382]: use of moved value: `c`
2 --> $DIR/closure-origin-single-variant-diagnostics.rs:17:13
3 |
4 LL | let b = c;
5 | - value moved here
6 LL | let a = c;
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 `point.0` out of its environment
10 --> $DIR/closure-origin-single-variant-diagnostics.rs:12:50
11 |
12 LL | let SingleVariant::Point(ref mut x, _) = point;
13 | ^^^^^
14
15 error: aborting due to previous error
16
17 For more information about this error, try `rustc --explain E0382`.