mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 17:24:06 +00:00
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
|
|
|