]> git.lizzy.rs Git - rust.git/blob - src/test/ui/async-await/issue-68523.rs
Merge commit '9a0c32934ebe376128230aa8da3275697b2053e7' into sync_cg_clif-2021-03-05
[rust.git] / src / test / ui / async-await / issue-68523.rs
1 // edition:2018
2
3 async fn main() -> Result<i32, ()> {
4 //~^ ERROR `main` function is not allowed to be `async`
5 //~^^ ERROR `main` has invalid return type `impl Future`
6     Ok(1)
7 }