diff options
Diffstat (limited to 'rust/hello/src')
| -rw-r--r-- | rust/hello/src/bin/false.rs | 4 | ||||
| -rw-r--r-- | rust/hello/src/bin/true.rs | 3 | ||||
| -rw-r--r-- | rust/hello/src/main.rs | 3 |
3 files changed, 10 insertions, 0 deletions
diff --git a/rust/hello/src/bin/false.rs b/rust/hello/src/bin/false.rs new file mode 100644 index 0000000..a0d6817 --- /dev/null +++ b/rust/hello/src/bin/false.rs @@ -0,0 +1,4 @@ +fn main() { + //std::process::exit(1); + std::process::abort(); +} diff --git a/rust/hello/src/bin/true.rs b/rust/hello/src/bin/true.rs new file mode 100644 index 0000000..44490fa --- /dev/null +++ b/rust/hello/src/bin/true.rs @@ -0,0 +1,3 @@ +fn main() { + std::process::exit(0); +} diff --git a/rust/hello/src/main.rs b/rust/hello/src/main.rs new file mode 100644 index 0000000..e7a11a9 --- /dev/null +++ b/rust/hello/src/main.rs @@ -0,0 +1,3 @@ +fn main() { + println!("Hello, world!"); +} |
