]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/E0596.ast.stderr
Rollup merge of #57107 - mjbshaw:thread_local_test, r=nikomatsakis
[rust.git] / src / test / ui / E0596.ast.stderr
index d88530b21647e9f775c5feffa704ebc160abbad2..6e65cc855e7f150fea4ae67c367b912b6bd8b717 100644 (file)
@@ -1,8 +1,8 @@
 error[E0596]: cannot borrow immutable local variable `x` as mutable
-  --> $DIR/E0596.rs:16:18
+  --> $DIR/E0596.rs:6:18
    |
 LL |     let x = 1;
-   |         - consider changing this to `mut x`
+   |         - help: make this binding mutable: `mut x`
 LL |     let y = &mut x; //[ast]~ ERROR [E0596]
    |                  ^ cannot borrow mutably