]> git.lizzy.rs Git - rust.git/blob - src/test/ui/async-await/issue-68523.stderr
Rollup merge of #71627 - ldm0:autoderefarg, r=Dylan-DPC
[rust.git] / src / test / ui / async-await / issue-68523.stderr
1 error[E0277]: `main` has invalid return type `impl std::future::Future`
2   --> $DIR/issue-68523.rs:3:20
3    |
4 LL | 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
9 error[E0752]: `main` function is not allowed to be `async`
10   --> $DIR/issue-68523.rs:3:1
11    |
12 LL | async fn main() -> Result<i32, ()> {
13    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async`
14
15 error: aborting due to 2 previous errors
16
17 Some errors have detailed explanations: E0277, E0752.
18 For more information about an error, try `rustc --explain E0277`.