Variables Bindings Example
fn main() { // Immutable variable let my_var: i32 = 5; println!("my_var is {}.", my_var); // Uncomment to see the error. // my_var = 6; println!("my_var is {}.", my_var); // Mutable variable let mut x = 5; println!("x is {}.", x); x = 10; println!("x is {}.", x); }