rustlings/exercises/01_variables/variables4.rs

10 lines
157 B
Rust
Raw Normal View History

2024-05-21 00:47:57 +01:00
// TODO: Fix the compiler error.
2015-09-17 01:19:24 +01:00
fn main() {
let x = 3;
2024-05-21 00:47:57 +01:00
println!("Number {x}");
x = 5; // Don't change this line
println!("Number {x}");
2015-09-17 01:19:24 +01:00
}