]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-11958.stderr
Merge commit '95c0459217d1661edfa794c8bb122452b92fb485' into clippyup
[rust.git] / src / test / ui / issues / issue-11958.stderr
1 warning: value assigned to `x` is never read
2   --> $DIR/issue-11958.rs:8:36
3    |
4 LL |     let _thunk = Box::new(move|| { x = 2; });
5    |                                    ^
6    |
7    = note: `#[warn(unused_assignments)]` on by default
8    = help: maybe it is overwritten before being read?
9
10 warning: unused variable: `x`
11   --> $DIR/issue-11958.rs:8:36
12    |
13 LL |     let _thunk = Box::new(move|| { x = 2; });
14    |                                    ^
15    |
16    = note: `#[warn(unused_variables)]` on by default
17    = help: did you mean to capture by reference instead?
18
19 warning: 2 warnings emitted
20