1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
use ;
// We can attach a std::process::ExitCode to control the exit code of our program.
// Note that it could very well be an ExitCode::SUCCESS.
// Also note that we do need to explicitly handle it, for example in our main() function.
// The common module has some conveniences for this common use case.
// We'll fake main() here to make sure this example does not actually fail;
// If this were our real main(), the Err(ExitCode) would be used for the program's exit code