summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-11958.stderr
blob: 5dca4c2f01d56c0e2001fed5ce145a01a8332c0a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
warning: value assigned to `x` is never read
  --> $DIR/issue-11958.rs:8:36
   |
LL |     let _thunk = Box::new(move|| { x = 2; });
   |                                    ^
   |
   = help: maybe it is overwritten before being read?
   = note: `#[warn(unused_assignments)]` on by default

warning: unused variable: `x`
  --> $DIR/issue-11958.rs:8:36
   |
LL |     let _thunk = Box::new(move|| { x = 2; });
   |                                    ^
   |
   = help: did you mean to capture by reference instead?
   = note: `#[warn(unused_variables)]` on by default

warning: 2 warnings emitted