summaryrefslogtreecommitdiff
path: root/old_curriculum/functions/functions1.rs
diff options
context:
space:
mode:
Diffstat (limited to 'old_curriculum/functions/functions1.rs')
-rw-r--r--old_curriculum/functions/functions1.rs44
1 files changed, 44 insertions, 0 deletions
diff --git a/old_curriculum/functions/functions1.rs b/old_curriculum/functions/functions1.rs
new file mode 100644
index 0000000..396dd56
--- /dev/null
+++ b/old_curriculum/functions/functions1.rs
@@ -0,0 +1,44 @@
+// functions1.rs
+// Make me compile! Scroll down for hints :)
+
+fn main() {
+ call_me();
+}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+// This main function is calling a function that it expects to exist, but the
+// function doesn't exist. It expects this function to have the name `call_me`.
+// It expects this function to not take any arguments and not return a value.
+// Sounds a lot like `main`, doesn't it?