fork/rust

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

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

master
593 B20 linesraw
1warning: value assigned to `x` is never read
2  --> $DIR/issue-11958.rs:8:36
3   |
4LL |     let _thunk = Box::new(move|| { x = 2; });
5   |                                    ^
6   |
7   = help: maybe it is overwritten before being read?
8   = note: `#[warn(unused_assignments)]` on by default
9
10warning: unused variable: `x`
11  --> $DIR/issue-11958.rs:8:36
12   |
13LL |     let _thunk = Box::new(move|| { x = 2; });
14   |                                    ^
15   |
16   = help: did you mean to capture by reference instead?
17   = note: `#[warn(unused_variables)]` on by default
18
19warning: 2 warnings emitted
20