summaryrefslogtreecommitdiffstats
path: root/tests/ui/unboxed-closures/unboxed-closures-move-mutable.stderr
blob: 5c06f4e621c178507405d832e3a0e1c73b5ba58e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
warning: unused variable: `x`
  --> $DIR/unboxed-closures-move-mutable.rs:17:17
   |
LL |         move || x += 1;
   |                 ^
   |
   = help: did you mean to capture by reference instead?
   = note: `#[warn(unused_variables)]` on by default

warning: unused variable: `x`
  --> $DIR/unboxed-closures-move-mutable.rs:21:17
   |
LL |         move || x += 1;
   |                 ^
   |
   = help: did you mean to capture by reference instead?

warning: 2 warnings emitted