]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/cannot-mutate-captured-non-mut-var.ast.nll.stderr
Rollup merge of #57107 - mjbshaw:thread_local_test, r=nikomatsakis
[rust.git] / src / test / ui / cannot-mutate-captured-non-mut-var.ast.nll.stderr
index a7ffc06872c2e0152546a25ff1d159abbac3a4c3..581dcde59f5e9ad2a6d47240f437d1ebb83ad773 100644 (file)
@@ -1,5 +1,5 @@
 error[E0594]: cannot assign to `x`, as it is not declared as mutable
-  --> $DIR/cannot-mutate-captured-non-mut-var.rs:23:25
+  --> $DIR/cannot-mutate-captured-non-mut-var.rs:13:25
    |
 LL |     let x = 1;
    |         - help: consider changing this to be mutable: `mut x`
@@ -7,7 +7,7 @@ LL |     to_fn_once(move|| { x = 2; });
    |                         ^^^^^ cannot assign
 
 error[E0596]: cannot borrow `s` as mutable, as it is not declared as mutable
-  --> $DIR/cannot-mutate-captured-non-mut-var.rs:28:25
+  --> $DIR/cannot-mutate-captured-non-mut-var.rs:18:25
    |
 LL |     let s = std::io::stdin();
    |         - help: consider changing this to be mutable: `mut s`