]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/borrowck/borrowck-ref-mut-of-imm.stderr
use structured suggestion for "missing mut" label
[rust.git] / src / test / ui / borrowck / borrowck-ref-mut-of-imm.stderr
index 2e2a1224306cb2c81426ee0bfde02063473d1f0c..520992096b5bc50e167a2da5c9fb624318d9d12d 100644 (file)
@@ -2,7 +2,7 @@ error[E0596]: cannot borrow field `(x as std::prelude::v1::Some).0` of immutable
   --> $DIR/borrowck-ref-mut-of-imm.rs:14:12
    |
 LL | fn destructure(x: Option<isize>) -> isize {
-   |                - consider changing this to `mut x`
+   |                - help: make this binding mutable: `mut x`
 ...
 LL |       Some(ref mut v) => *v //~ ERROR cannot borrow
    |            ^^^^^^^^^ cannot mutably borrow field of immutable binding