]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/unboxed-closures/unboxed-closures-infer-fnmut-move-missing-mut.stderr
use structured suggestion for "missing mut" label
[rust.git] / src / test / ui / unboxed-closures / unboxed-closures-infer-fnmut-move-missing-mut.stderr
index f9fd6c21b706c284cc75a773997865d658ff5a94..9515fe502417a15eaf4f68621b8b067c9b69e333 100644 (file)
@@ -2,7 +2,7 @@ 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`
+   |         ---- help: make this binding mutable: `mut tick`
 LL |     tick(); //~ ERROR cannot borrow immutable local variable `tick` as mutable
    |     ^^^^ cannot borrow mutably