rust/tests/ui/unboxed-closures/unboxed-closures-move-mutable.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

20 lines
482 B
Plaintext
Raw Normal View History

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?
2022-09-18 10:55:36 -05:00
= 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