Content-Length: 12643 | pFad | https://doc.rust-lang.org/reference/../std/../std/vec/../sync/../rc/../../error_codes/./E0752.html

E0752 - Error codes index

Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Error code E0752

The entry point of the program was marked as async.

Erroneous code example:

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(())
}








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://doc.rust-lang.org/reference/../std/../std/vec/../sync/../rc/../../error_codes/./E0752.html

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy