]> git.proxmox.com Git - rustc.git/blame - src/test/ui/async-await/issue-61452.rs
Update unsuspicious file list
[rustc.git] / src / test / ui / async-await / issue-61452.rs
CommitLineData
dc9dc135 1// edition:2018
dc9dc135
XL
2
3pub async fn f(x: Option<usize>) {
4 x.take();
5 //~^ ERROR cannot borrow `x` as mutable, as it is not declared as mutable [E0596]
6}
7
8pub async fn g(x: usize) {
9 x += 1;
10 //~^ ERROR cannot assign twice to immutable variable `x` [E0384]
11}
12
13fn main() {}