blob: 97107c2e30f00e151f614e9ddd682f308db760b8 [file] [log] [blame]
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);
}