1 error[E0384]: cannot assign twice to immutable variable `x`
2 --> $DIR/mut-pattern-internal-mutability.rs:5:5
7 | first assignment to `x`
8 | help: consider making this binding mutable: `mut x`
10 | ^^^^^^ cannot assign twice to immutable variable
12 error[E0506]: cannot assign to `*foo` because it is borrowed
13 --> $DIR/mut-pattern-internal-mutability.rs:13:5
15 LL | let &mut ref x = foo;
16 | ----- borrow of `*foo` occurs here
18 | ^^^^^^^^^ assignment to borrowed `*foo` occurs here
20 | - borrow later used here
22 error: aborting due to 2 previous errors
24 Some errors have detailed explanations: E0384, E0506.
25 For more information about an error, try `rustc --explain E0384`.