]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/assign-imm-local-twice.ast.nll.stderr
Auto merge of #54720 - davidtwco:issue-51191, r=nikomatsakis
[rust.git] / src / test / ui / assign-imm-local-twice.ast.nll.stderr
index 6d415eb733318108a18aa6d9a9f3ee6af596f3fa..8a50ec8f52c5844a34b1f3669114d0d5b5af5d4a 100644 (file)
@@ -1,9 +1,9 @@
 error[E0384]: cannot assign twice to immutable variable `v`
-  --> $DIR/assign-imm-local-twice.rs:20:5
+  --> $DIR/assign-imm-local-twice.rs:21:5
    |
 LL |     let v: isize;
-   |         - consider changing this to `mut v`
-LL |     //[mir]~^ NOTE consider changing this to `mut v`
+   |         - help: make this binding mutable: `mut v`
+...
 LL |     v = 1; //[ast]~ NOTE first assignment
    |     ----- first assignment to `v`
 ...