Variable shadowing



examples/other/shadowing/src/main.rs
fn main() {
    let x = 5;
    println!("x={x}");

    let x = x + 1;
    println!("x={x}");

    {
        println!("x={x}");
        let x = x * 2;
        println!("x={x}");
    }

    println!("x={x}");
}

x=5
x=6
x=6
x=12
x=6