]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/command-line-diagnostics.nll.stderr
Auto merge of #54624 - arielb1:evaluate-outlives, r=nikomatsakis
[rust.git] / src / test / ui / command-line-diagnostics.nll.stderr
index 10dcf7d0e657a38d177b763486190b1d1da6f925..6273ba33e167b3ed7a2405e7587631814cc3da5b 100644 (file)
@@ -2,9 +2,10 @@ error[E0384]: cannot assign twice to immutable variable `x`
   --> $DIR/command-line-diagnostics.rs:16:5
    |
 LL |     let x = 42;
-   |         -   -- first assignment to `x`
+   |         -
    |         |
-   |         consider changing this to `mut x`
+   |         first assignment to `x`
+   |         help: make this binding mutable: `mut x`
 LL |     x = 43;
    |     ^^^^^^ cannot assign twice to immutable variable