]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/mut/mut-pattern-internal-mutability.mir.stderr
use structured suggestion for "missing mut" label
[rust.git] / src / test / ui / mut / mut-pattern-internal-mutability.mir.stderr
index 0df303eed779ad4af22819202008578cfd2cdfb4..8b8414b8f1b740617ef03d85f41aad9ae2084277 100644 (file)
@@ -5,7 +5,7 @@ LL |     let &mut x = foo;
    |              -
    |              |
    |              first assignment to `x`
-   |              consider changing this to `mut x`
+   |              help: make this binding mutable: `mut x`
 LL |     x += 1; //[ast]~ ERROR cannot assign twice to immutable variable
    |     ^^^^^^ cannot assign twice to immutable variable