fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
779 B27 linesraw
1warning: unused variable: `item`
2  --> $DIR/unboxed-closures-counter-not-moved.rs:15:13
3   |
4LL |         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
9warning: value assigned to `counter` is never read
10  --> $DIR/unboxed-closures-counter-not-moved.rs:24:9
11   |
12LL |         counter += 1;
13   |         ^^^^^^^
14   |
15   = help: maybe it is overwritten before being read?
16   = note: `#[warn(unused_assignments)]` on by default
17
18warning: unused variable: `counter`
19  --> $DIR/unboxed-closures-counter-not-moved.rs:24:9
20   |
21LL |         counter += 1;
22   |         ^^^^^^^
23   |
24   = help: did you mean to capture by reference instead?
25
26warning: 3 warnings emitted
27