summaryrefslogtreecommitdiff
path: root/solutions/01_variables/variables6.rs
diff options
context:
space:
mode:
Diffstat (limited to 'solutions/01_variables/variables6.rs')
-rw-r--r--solutions/01_variables/variables6.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/solutions/01_variables/variables6.rs b/solutions/01_variables/variables6.rs
new file mode 100644
index 0000000..25b7a1e
--- /dev/null
+++ b/solutions/01_variables/variables6.rs
@@ -0,0 +1,6 @@
+// The type of constants must always be annotated.
+const NUMBER: u64 = 3;
+
+fn main() {
+ println!("Number: {NUMBER}");
+}