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