Rust Variables, Mutability, and Shadowing

In Rust a let binding cannot be reassigned unless it is declared mut. Starting from immutable removes a whole class of accidental changes, and the compiler enforces it.

Rust
fn main() {
    let mut count = 1;
    count += 2;
    let count = count * 10;
    println!("{}", count);
}
Read the full lesson