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`
| ^^^^^ 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`