summaryrefslogtreecommitdiff
path: root/exercises/functions/functions1.rs
diff options
context:
space:
mode:
Diffstat (limited to 'exercises/functions/functions1.rs')
-rwxr-xr-xexercises/functions/functions1.rs44
1 files changed, 44 insertions, 0 deletions
diff --git a/exercises/functions/functions1.rs b/exercises/functions/functions1.rs
new file mode 100755
index 0000000..396dd56
--- /dev/null
+++ b/exercises/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?