1 error[E0277]: `main` has invalid return type `impl Future`
2 --> $DIR/issue-68523.rs:3:20
4 LL | async fn main() -> Result<i32, ()> {
5 | ^^^^^^^^^^^^^^^ `main` can only return types that implement `Termination`
7 = help: consider using `()`, or a `Result`
9 error[E0752]: `main` function is not allowed to be `async`
10 --> $DIR/issue-68523.rs:3:1
12 LL | async fn main() -> Result<i32, ()> {
13 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async`
15 error: aborting due to 2 previous errors
17 Some errors have detailed explanations: E0277, E0752.
18 For more information about an error, try `rustc --explain E0277`.