20 lines
482 B
Plaintext
20 lines
482 B
Plaintext
|
warning: unused variable: `x`
|
||
|
--> $DIR/unboxed-closures-move-mutable.rs:16:17
|
||
|
|
|
||
|
LL | move || x += 1;
|
||
|
| ^
|
||
|
|
|
||
|
= note: `#[warn(unused_variables)]` on by default
|
||
|
= help: did you mean to capture by reference instead?
|
||
|
|
||
|
warning: unused variable: `x`
|
||
|
--> $DIR/unboxed-closures-move-mutable.rs:20:17
|
||
|
|
|
||
|
LL | move || x += 1;
|
||
|
| ^
|
||
|
|
|
||
|
= help: did you mean to capture by reference instead?
|
||
|
|
||
|
warning: 2 warnings emitted
|
||
|
|