rust/tests/ui/unboxed-closures/unboxed-closures-move-mutable.stderr
2023-01-11 09:32:08 +00:00

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