rustlings/exercises/variables/variables3.rs
2020-05-03 20:09:46 -07:00

11 lines
226 B
Rust

// variables3.rs
// Make me compile! Execute the command `rustlings hint variables3` if you want a hint :)
fn main() {
let x = 3;
println!("Number {}", x);
let x = 5; // shadowing
println!("Number {}", x);
}