1 error[E0594]: cannot assign to `*y`, as `y` is not declared as mutable
2 --> $DIR/immut-function-arguments.rs:2:5
7 help: consider changing this to be mutable
9 LL | fn f(mut y: Box<isize>) {
12 error[E0594]: cannot assign to `*q`, as `q` is not declared as mutable
13 --> $DIR/immut-function-arguments.rs:6:35
15 LL | let _frob = |q: Box<isize>| { *q = 2; };
16 | ^^^^^^ cannot assign
18 help: consider changing this to be mutable
20 LL | let _frob = |mut q: Box<isize>| { *q = 2; };
23 error: aborting due to 2 previous errors
25 For more information about this error, try `rustc --explain E0594`.