Integers are copies
- Make the copy mutable
examples/ownership/integers/src/main.rs
fn main() { let a = 23; println!("{a}"); let mut b = a; println!("{b}"); b = 42; println!("{a}"); println!("{b}"); }
23 23 23 42
fn main() { let a = 23; println!("{a}"); let mut b = a; println!("{b}"); b = 42; println!("{a}"); println!("{b}"); }
23 23 23 42