]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/writing-to-immutable-vec.stderr
Pin panic-in-drop=abort test to old pass manager
[rust.git] / src / test / ui / writing-to-immutable-vec.stderr
index 9bc82dfd358904143dcf8b2c09f7225ec8797e17..a65765c86c8b72956532f957a56087d128e5eb4f 100644 (file)
@@ -1,10 +1,10 @@
-error[E0596]: cannot borrow immutable local variable `v` as mutable
+error[E0596]: cannot borrow `v` as mutable, as it is not declared as mutable
   --> $DIR/writing-to-immutable-vec.rs:3:5
    |
 LL |     let v: Vec<isize> = vec![1, 2, 3];
-   |         - help: make this binding mutable: `mut v`
+   |         - help: consider changing this to be mutable: `mut v`
 LL |     v[1] = 4;
-   |     ^ cannot borrow mutably
+   |     ^ cannot borrow as mutable
 
 error: aborting due to previous error