1 error[E0384]: cannot assign to immutable argument `y`
2 --> $DIR/immut-function-arguments.rs:15:5
4 LL | fn f(y: Box<isize>) {
5 | - consider changing this to `mut y`
6 LL | *y = 5; //[ast]~ ERROR cannot assign
7 | ^^^^^^ cannot assign to immutable argument
9 error[E0384]: cannot assign to immutable argument `q`
10 --> $DIR/immut-function-arguments.rs:20:35
12 LL | let _frob = |q: Box<isize>| { *q = 2; }; //[ast]~ ERROR cannot assign
13 | - ^^^^^^ cannot assign to immutable argument
15 | consider changing this to `mut q`
17 error: aborting due to 2 previous errors
19 For more information about this error, try `rustc --explain E0384`.