20 lines
482 B
Plaintext
20 lines
482 B
Plaintext
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
|
|
|