blob: 9736da80c2b7b178396f85e680e7ff358a15215c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
The entry point of the program was marked as `async`.
Erroneous code example:
```compile_fail,E0752
async fn main() -> Result<(), ()> { // error!
Ok(())
}
```
`fn main()` or the specified start function is not allowed to be `async`. Not
having a correct async runtime library setup may cause this error. To fix it,
declare the entry point without `async`:
```
fn main() -> Result<(), ()> { // ok!
Ok(())
}
```
|