// ERROR:7:borrow unit badmut; fn bad() -> i32 { var x: i32 = 0; let r = &mut x; x = 1; r.^ = 2; return x; }