1 error[E0594]: cannot assign to `*x`, which is behind a `&` reference
2 --> $DIR/issue-57989.rs:5:5
5 | ---- help: consider changing this to be a mutable reference: `&mut i32`
8 | ^^^^^^ `x` is a `&` reference, so the data it refers to cannot be written
10 error[E0506]: cannot assign to `*x` because it is borrowed
11 --> $DIR/issue-57989.rs:5:5
14 | -- borrow of `*x` occurs here
16 | ^^^^^^ assignment to borrowed `*x` occurs here
19 | - borrow later used here
21 error: aborting due to 2 previous errors
23 Some errors have detailed explanations: E0506, E0594.
24 For more information about an error, try `rustc --explain E0506`.