1 2 3 4 5 6 7 8 9 10
fn main() { let mut _a = 3; let b = &mut _a; { let c = &*b; _a = 4; //~ ERROR cannot assign to `_a` because it is borrowed drop(c); } drop(b); }