]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/command-line-diagnostics.stderr
Rollup merge of #82259 - osa1:issue82156, r=petrochenkov
[rust.git] / src / test / ui / command-line-diagnostics.stderr
index 6f1156e0d36d75c796c34468040c215f528785a6..b3f8d8a643fb5b7e32d57d856aa63ae433192a2c 100644 (file)
@@ -2,7 +2,10 @@ error[E0384]: cannot assign twice to immutable variable `x`
   --> $DIR/command-line-diagnostics.rs:6:5
    |
 LL |     let x = 42;
-   |         - first assignment to `x`
+   |         -
+   |         |
+   |         first assignment to `x`
+   |         help: make this binding mutable: `mut x`
 LL |     x = 43;
    |     ^^^^^^ cannot assign twice to immutable variable