[][src]Attribute Macro runtime_attributes::main

#[main]

Defines the async main function.

Examples

#![feature(async_await, futures_api)]

#[runtime::main]
async fn main() -> std::io::Result<()> {
    Ok(())
}