]> git.lizzy.rs Git - rust.git/blob - src/librustc_error_codes/error_codes/E0752.md
pin docs: add some forward references
[rust.git] / src / librustc_error_codes / error_codes / E0752.md
1 `fn main()` or the specified start function is not allowed to be
2 async. You might be seeing this error because your async runtime
3 library is not set up correctly.
4
5 Erroneous code example:
6
7 ```compile_fail,E0752
8 async fn main() -> Result<i32, ()> {
9     Ok(1)
10 }
11 ```