1 error[E0384]: cannot assign twice to immutable variable `b`
2 --> $DIR/issue-45199.rs:6:5
4 LL | let b: Box<isize>;
5 | - help: consider making this binding mutable: `mut b`
8 | - first assignment to `b`
10 | ^ cannot assign twice to immutable variable
12 error[E0384]: cannot assign twice to immutable variable `b`
13 --> $DIR/issue-45199.rs:14:5
15 LL | let b = Box::new(1);
18 | first assignment to `b`
19 | help: consider making this binding mutable: `mut b`
22 | ^ cannot assign twice to immutable variable
24 error[E0384]: cannot assign to immutable argument `b`
25 --> $DIR/issue-45199.rs:20:5
27 LL | fn test_args(b: Box<i32>) {
28 | - help: consider making this binding mutable: `mut b`
31 | ^ cannot assign to immutable argument
33 error: aborting due to 3 previous errors
35 For more information about this error, try `rustc --explain E0384`.