fn main() or the specified start function is not allowed to be async. You might be seeing this error because your async runtime library is not set up correctly.

Erroneous code example:

async fn main() -> Result<i32, ()> {
    Ok(1)
}