]> git.lizzy.rs Git - rust.git/blob - src/test/ui/unboxed-closures/unboxed-closures-move-mutable.stderr
Rollup merge of #105843 - compiler-errors:sugg-const, r=lcnr
[rust.git] / src / test / ui / unboxed-closures / unboxed-closures-move-mutable.stderr
1 warning: unused variable: `x`
2   --> $DIR/unboxed-closures-move-mutable.rs:17:17
3    |
4 LL |         move || x += 1;
5    |                 ^
6    |
7    = help: did you mean to capture by reference instead?
8    = note: `#[warn(unused_variables)]` on by default
9
10 warning: unused variable: `x`
11   --> $DIR/unboxed-closures-move-mutable.rs:21:17
12    |
13 LL |         move || x += 1;
14    |                 ^
15    |
16    = help: did you mean to capture by reference instead?
17
18 warning: 2 warnings emitted
19