compiler/rustc_error_codes/src/error_codes/E0752.md MARKDOWN 20 lines View on github.com → Search inside
1The entry point of the program was marked as `async`.23Erroneous code example:45```compile_fail,E07526async fn main() -> Result<(), ()> { // error!7    Ok(())8}9```1011`fn main()` or the specified start function is not allowed to be `async`. Not12having a correct async runtime library setup may cause this error. To fix it,13declare the entry point without `async`:1415```16fn main() -> Result<(), ()> { // ok!17    Ok(())18}19```

Findings

✓ No findings reported for this file.

Get this view in your editor

Same data, no extra tab — call code_get_file + code_get_findings over MCP from Claude/Cursor/Copilot.