1 error[E0594]: cannot assign to `*x`, which is behind a `&` reference
2 --> $DIR/issue-57989.rs:5:5
5 | ^^^^^^ `x` is a `&` reference, so the data it refers to cannot be written
7 help: consider changing this to be a mutable reference
9 LL | fn f(x: &mut i32) {
12 error[E0506]: cannot assign to `*x` because it is borrowed
13 --> $DIR/issue-57989.rs:5:5
16 | -- borrow of `*x` occurs here
18 | ^^^^^^ assignment to borrowed `*x` occurs here
21 | - borrow later used here
23 error: aborting due to 2 previous errors
25 Some errors have detailed explanations: E0506, E0594.
26 For more information about an error, try `rustc --explain E0506`.