// check: VerificationFailure // check: MoveLocExistsBorrowError main() { let v: u64; let ref_v: &mut u64; let dead: u64; v = 5; ref_v = &mut v; assert(*copy(ref_v) == 5, 42); dead = move(v); *move(ref_v) = 42; return; }