Redeclare immutable variable - Shadowing



examples/variables/shadow/src/main.rs
fn main() {
    let name = "Foo";
    println!("{name}");

    let name = "Bar";
    println!("{name}");
}

Foo
Bar