blob: f9fd6c21b706c284cc75a773997865d658ff5a94 [file] [log] [blame]
error[E0596]: cannot borrow immutable local variable `tick` as mutable
--> $DIR/unboxed-closures-infer-fnmut-move-missing-mut.rs:17:5
|
LL | let tick = move || counter += 1;
| ---- consider changing this to `mut tick`
LL | tick(); //~ ERROR cannot borrow immutable local variable `tick` as mutable
| ^^^^ cannot borrow mutably
error: aborting due to previous error
For more information about this error, try `rustc --explain E0596`.