Attribute Macro quit::main

source ·
#[main]
Expand description

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