1 error[E0596]: cannot borrow `x` as mutable, as it is not declared as mutable
2 --> $DIR/issue-61452.rs:4:5
4 LL | pub async fn f(x: Option<usize>) {
5 | - help: consider changing this to be mutable: `mut x`
7 | ^ cannot borrow as mutable
9 error[E0384]: cannot assign twice to immutable variable `x`
10 --> $DIR/issue-61452.rs:9:5
12 LL | pub async fn g(x: usize) {
15 | first assignment to `x`
16 | help: consider making this binding mutable: `mut x`
18 | ^^^^^^ cannot assign twice to immutable variable
20 error: aborting due to 2 previous errors
22 Some errors have detailed explanations: E0384, E0596.
23 For more information about an error, try `rustc --explain E0384`.