1 2 3 4 5 6 7 8 9
// Test: Mutability error translation // Expected: "Cannot modify: This value is not declared as mutable" fn main() { let mut x = 10 x = 20 // Error: x is not mutable println!("x = {}", x) }