# Sombreamento Uma característica única em Rust é o sombreamento (**Shadowing**). Você pode declarar uma nova variável com o mesmo nome de uma anterior usando `let`. Essa nova variável "sombreia" a antiga, criando efetivamente uma nova variável. O sombreamento permite que você altere o tipo do valor enquanto reutiliza o mesmo nome, o que não é possível com `mut`. ```rust fn main() { let x = 5; // x is an integer let x = x + 1; // x is now 6 { let x = x * 2; // x is 12 in this inner scope println!("The value of x in the inner scope is: {x}"); } println!("The value of x is: {x}"); // x is 6 again outside the inner scope } ``` **:: Referência ::** [Variables and Mutability - The Rust Programming Language](https://doc.rust-lang.org/book/ch03-01-variables-and-mutability.html) **:: Referência ::** [4: Variable Shadowing in Rust](https://www.youtube.com/watch?v=JpbI7ULFwiw&t=3s)