[−][src]Attribute Macro runtime_attributes::main
#[main]
Defines the async main function.
Examples
ⓘThis example is not tested
#![feature(async_await)] #[runtime::main] async fn main() -> std::io::Result<()> { Ok(()) }
#[main]
Defines the async main function.
#![feature(async_await)] #[runtime::main] async fn main() -> std::io::Result<()> { Ok(()) }