]> git.proxmox.com Git - rustc.git/blob - src/test/ui/closures/2229_closure_analysis/diagnostics/liveness_unintentional_copy.stderr
New upstream version 1.52.0~beta.3+dfsg1
[rustc.git] / src / test / ui / closures / 2229_closure_analysis / diagnostics / liveness_unintentional_copy.stderr
1 warning: the feature `capture_disjoint_fields` is incomplete and may not be safe to use and/or cause compiler crashes
2 --> $DIR/liveness_unintentional_copy.rs:2:12
3 |
4 LL | #![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
10 warning: value assigned to `a` is never read
11 --> $DIR/liveness_unintentional_copy.rs:19:9
12 |
13 LL | a = s;
14 | ^
15 |
16 note: the lint level is defined here
17 --> $DIR/liveness_unintentional_copy.rs:4:9
18 |
19 LL | #![warn(unused)]
20 | ^^^^^^
21 = note: `#[warn(unused_assignments)]` implied by `#[warn(unused)]`
22 = help: maybe it is overwritten before being read?
23
24 warning: unused variable: `a`
25 --> $DIR/liveness_unintentional_copy.rs:19:9
26 |
27 LL | a = s;
28 | ^
29 |
30 note: the lint level is defined here
31 --> $DIR/liveness_unintentional_copy.rs:4:9
32 |
33 LL | #![warn(unused)]
34 | ^^^^^^
35 = note: `#[warn(unused_variables)]` implied by `#[warn(unused)]`
36 = help: did you mean to capture by reference instead?
37
38 warning: unused variable: `a`
39 --> $DIR/liveness_unintentional_copy.rs:35:9
40 |
41 LL | a += x;
42 | ^
43 |
44 = help: did you mean to capture by reference instead?
45
46 warning: 4 warnings emitted
47