E4149

E4149#

Cannot call async function in this context.

异步函数只能在异步函数中调用。

错误示例#

async fn f() -> Int {
  ...
}

fn g() -> Int {
  f!()
}

建议#

You can change the containing function to an async function:

async fn g() -> Int {
  f!()
}