Skip to main content

EXIT_SUCCESS

Constant EXIT_SUCCESS 

Source
pub const EXIT_SUCCESS: i32 = 0;
Expand description

Code signaling successful termination of the process.

Note that a ()-returning main implicitly results in a successful termination, so there’s no need to return this from main unless you’re also returning other possible codes.