]> git.proxmox.com Git - rustc.git/blame - src/test/ui/closures/2229_closure_analysis/diagnostics/closure-origin-single-variant-diagnostics.stderr
New upstream version 1.52.0~beta.3+dfsg1
[rustc.git] / src / test / ui / closures / 2229_closure_analysis / diagnostics / closure-origin-single-variant-diagnostics.stderr
CommitLineData
5869c6ff
XL
1warning: the feature `capture_disjoint_fields` is incomplete and may not be safe to use and/or cause compiler crashes
2 --> $DIR/closure-origin-single-variant-diagnostics.rs:1:12
3 |
4LL | #![feature(capture_disjoint_fields)]
5 | ^^^^^^^^^^^^^^^^^^^^^^^
6 |
7 = note: `#[warn(incomplete_features)]` on by default
8 = note: see issue #53488 <https://github.com/rust-lang/rust/issues/53488> for more information
9
5869c6ff 10error[E0382]: use of moved value: `c`
6a06907d 11 --> $DIR/closure-origin-single-variant-diagnostics.rs:21:13
5869c6ff
XL
12 |
13LL | let b = c;
14 | - value moved here
15LL | let a = c;
16 | ^ value used here after move
17 |
18note: closure cannot be moved more than once as it is not `Copy` due to moving the variable `point.0` out of its environment
6a06907d 19 --> $DIR/closure-origin-single-variant-diagnostics.rs:16:50
5869c6ff 20 |
6a06907d
XL
21LL | let SingleVariant::Point(ref mut x, _) = point;
22 | ^^^^^
5869c6ff 23
6a06907d 24error: aborting due to previous error; 1 warning emitted
5869c6ff
XL
25
26For more information about this error, try `rustc --explain E0382`.