summaryrefslogtreecommitdiff
path: root/rustlings/exercises/01_variables/variables2.rs
diff options
context:
space:
mode:
Diffstat (limited to 'rustlings/exercises/01_variables/variables2.rs')
-rw-r--r--rustlings/exercises/01_variables/variables2.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/rustlings/exercises/01_variables/variables2.rs b/rustlings/exercises/01_variables/variables2.rs
new file mode 100644
index 0000000..e2a3603
--- /dev/null
+++ b/rustlings/exercises/01_variables/variables2.rs
@@ -0,0 +1,10 @@
+fn main() {
+ // TODO: Change the line below to fix the compiler error.
+ let x;
+
+ if x == 10 {
+ println!("x is ten!");
+ } else {
+ println!("x is not ten!");
+ }
+}