]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/issues/issue-33819.stderr
Rollup merge of #62337 - Mark-Simulacrum:fix-cpu-usage-script, r=alexcrichton
[rust.git] / src / test / ui / issues / issue-33819.stderr
index bb8a542b12be6961ed5623db478e6b4d0b58a2fb..8bc2d82cd3f14ed5fbbeda988dbfabd5add48419 100644 (file)
@@ -1,8 +1,11 @@
-error[E0596]: cannot borrow immutable local variable `v` as mutable
-  --> $DIR/issue-33819.rs:13:39
+error[E0596]: cannot borrow `v` as mutable, as it is not declared as mutable
+  --> $DIR/issue-33819.rs:4:34
    |
 LL |         Some(ref v) => { let a = &mut v; },
-   |                                       ^ cannot borrow mutably
+   |                                  ^^^^^^
+   |                                  |
+   |                                  cannot borrow as mutable
+   |                                  try removing `&mut` here
 
 error: aborting due to previous error