We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 441fd22 commit bbad31dCopy full SHA for bbad31d
src/librustc_error_codes/error_codes/E0752.md
@@ -1,11 +1,19 @@
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.
+The entry point of the program was marked as `async`.
4
5
Erroneous code example:
6
7
```compile_fail,E0752
8
-async fn main() -> Result<i32, ()> {
+async fn main() -> Result<i32, ()> { // error!
+ Ok(1)
+}
9
+```
10
+
11
+`fn main()` or the specified start function is not allowed to be `async`. You
12
+might be seeing this error because your async runtime library is not set up
13
+correctly. To fix it, don't declare the entry point as `async`:
14
15
16
+fn main() -> Result<i32, ()> { // ok!
17
Ok(1)
18
}
19
```
0 commit comments