fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0594]: cannot assign to `*y`, as `y` is not declared as mutable 2 --> $DIR/immut-function-arguments.rs:2:5 3 | 4LL | *y = 5; 5 | ^^^^^^ cannot assign 6 | 7help: consider changing this to be mutable 8 | 9LL | fn f(mut y: Box<isize>) { 10 | +++ 11 12error[E0594]: cannot assign to `*q`, as `q` is not declared as mutable 13 --> $DIR/immut-function-arguments.rs:6:35 14 | 15LL | let _frob = |q: Box<isize>| { *q = 2; }; 16 | ^^^^^^ cannot assign 17 | 18help: consider changing this to be mutable 19 | 20LL | let _frob = |mut q: Box<isize>| { *q = 2; }; 21 | +++ 22 23error: aborting due to 2 previous errors 24 25For more information about this error, try `rustc --explain E0594`.