E4149

E4149#

Cannot call async function in this context.

Async functions can only be called in async functions.

错误示例#

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

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

建议#

You can change the containing function to an async function:

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