summaryrefslogtreecommitdiff
path: root/rust/chap4/test.rs
diff options
context:
space:
mode:
Diffstat (limited to 'rust/chap4/test.rs')
-rw-r--r--rust/chap4/test.rs14
1 files changed, 14 insertions, 0 deletions
diff --git a/rust/chap4/test.rs b/rust/chap4/test.rs
new file mode 100644
index 0000000..eabcaeb
--- /dev/null
+++ b/rust/chap4/test.rs
@@ -0,0 +1,14 @@
+fn read(y: bool) {
+ if y {
+ println!("Y is true");
+ }
+
+}
+
+fn main() {
+
+ read(t);
+ let t: bool = true;
+
+ return;
+}