]> git.proxmox.com Git - rustc.git/blob - tests/ui/unboxed-closures/unboxed-closures-counter-not-moved.stderr
New upstream version 1.68.2+dfsg1
[rustc.git] / tests / ui / unboxed-closures / unboxed-closures-counter-not-moved.stderr
1 warning: unused variable: `item`
2 --> $DIR/unboxed-closures-counter-not-moved.rs:15:13
3 |
4 LL | for item in y {
5 | ^^^^ help: if this is intentional, prefix it with an underscore: `_item`
6 |
7 = note: `#[warn(unused_variables)]` on by default
8
9 warning: value assigned to `counter` is never read
10 --> $DIR/unboxed-closures-counter-not-moved.rs:24:9
11 |
12 LL | counter += 1;
13 | ^^^^^^^
14 |
15 = help: maybe it is overwritten before being read?
16 = note: `#[warn(unused_assignments)]` on by default
17
18 warning: unused variable: `counter`
19 --> $DIR/unboxed-closures-counter-not-moved.rs:24:9
20 |
21 LL | counter += 1;
22 | ^^^^^^^
23 |
24 = help: did you mean to capture by reference instead?
25
26 warning: 3 warnings emitted
27