main() { let x: u64; let x_ref: &mut u64; let imm_ref: &u64; x = 5; x_ref = &mut x; imm_ref = freeze(move(x_ref)); *move(imm_ref) = 0; return; } // check: VerificationError { kind: FunctionDefinition, idx: 0, err: WriteRefNoMutableReferenceError(9) }