Skip to main content

EXIT_FAILURE

Constant EXIT_FAILURE 

Source
pub const EXIT_FAILURE: i32 = 1;
Expand description

Code signaling unsuccessful termination of the process.

If you’re only returning this and SUCCESS from main, consider instead returning Err(E) and Ok(()) respectively, which will return the same codes (but will also eprintln! the error).