E4149

E4149#

Cannot call async function in this context.

Async functions can only be called in async functions.

Erroneous example#

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

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

Suggestion#

You can change the containing function to an async function:

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