summaryrefslogtreecommitdiff
path: root/rust/rustlings/solutions/01_variables/variables6.rs
diff options
context:
space:
mode:
Diffstat (limited to 'rust/rustlings/solutions/01_variables/variables6.rs')
-rw-r--r--rust/rustlings/solutions/01_variables/variables6.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/rust/rustlings/solutions/01_variables/variables6.rs b/rust/rustlings/solutions/01_variables/variables6.rs
new file mode 100644
index 0000000..25b7a1e
--- /dev/null
+++ b/rust/rustlings/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}");
+}