1
0
mirror of https://github.com/rust-lang/rustlings.git synced 2025-06-19 00:17:42 +02:00
Files
.cargo
.github
dev
exercises
rustlings-macros
solutions
00_intro
01_variables
variables1.rs
variables2.rs
variables3.rs
variables4.rs
variables5.rs
variables6.rs
02_functions
03_if
04_primitive_types
05_vecs
06_move_semantics
07_structs
08_enums
09_strings
10_modules
11_hashmaps
12_options
13_error_handling
14_generics
15_traits
16_lifetimes
17_tests
18_iterators
19_smart_pointers
20_threads
21_macros
22_clippy
23_conversions
quizzes
README.md
src
tests
website
.gitignore
.typos.toml
CHANGELOG.md
CONTRIBUTING.md
Cargo.lock
Cargo.toml
LICENSE
README.md
build.rs
clippy.toml
release-hook.sh
rustlings/solutions/01_variables/variables6.rs

7 lines
123 B
Rust
Raw Normal View History

2024-05-21 01:47:57 +02:00
// The type of constants must always be annotated.
const NUMBER: u64 = 3;
fn main() {
println!("Number: {NUMBER}");
}