rust/tests/ui/async-await/issue-68523.rs
2024-02-16 20:02:50 +00:00

7 lines
123 B
Rust

//@ edition:2018
async fn main() -> Result<i32, ()> {
//~^ ERROR `main` function is not allowed to be `async`
Ok(1)
}