summaryrefslogtreecommitdiff
path: root/rust/hello/src/bin
diff options
context:
space:
mode:
Diffstat (limited to 'rust/hello/src/bin')
-rw-r--r--rust/hello/src/bin/false.rs4
-rw-r--r--rust/hello/src/bin/true.rs3
2 files changed, 7 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);
+}