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