[−][src]Attribute Macro quit::main
#[main]
Modifies the main function to exit with the code passed to [with_code
].
This attribute should always be attached to the main function. Otherwise, the exit code of the program may be incorrect.
Examples
#[quit::main] fn main() {}