Reading The Rust Book from cover to cover — Day 2 — Variables
3 min readApr 6, 2024
Talking about Variables and Constants in Rust
Chapter 3: Common Programming Concepts
Variables in Rust are immutable by default.
let x = 5;
// x = 6; won't compile. Compile error: cannot assign twice to immutable variable