]> git.lizzy.rs Git - rust.git/blob - tests/ui/closures/2229_closure_analysis/diagnostics/liveness_unintentional_copy.stderr
Rollup merge of #107282 - BoxyUwU:erica_builtin_pointee_impls, r=compiler-errors
[rust.git] / tests / ui / closures / 2229_closure_analysis / diagnostics / liveness_unintentional_copy.stderr
1 warning: value assigned to `a` is never read
2   --> $DIR/liveness_unintentional_copy.rs:20:9
3    |
4 LL |         a = s;
5    |         ^
6    |
7    = help: maybe it is overwritten before being read?
8 note: the lint level is defined here
9   --> $DIR/liveness_unintentional_copy.rs:4:9
10    |
11 LL | #![warn(unused)]
12    |         ^^^^^^
13    = note: `#[warn(unused_assignments)]` implied by `#[warn(unused)]`
14
15 warning: unused variable: `a`
16   --> $DIR/liveness_unintentional_copy.rs:20:9
17    |
18 LL |         a = s;
19    |         ^
20    |
21    = help: did you mean to capture by reference instead?
22    = note: `#[warn(unused_variables)]` implied by `#[warn(unused)]`
23
24 warning: unused variable: `a`
25   --> $DIR/liveness_unintentional_copy.rs:36:9
26    |
27 LL |         a += x;
28    |         ^
29    |
30    = help: did you mean to capture by reference instead?
31
32 warning: 3 warnings emitted
33