Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Negative coverage: prove_place_is_movable / copy / premise prove_ty_is_copy(env, assumptions, state, &place.ty) => state

Premise at line 883. Observed failure causes: failed_judgment.

copy
LineCoverageSource
8832(prove_ty_is_copy(env, assumptions, state, &place.ty) => state)
──────── ("copy")
8859(prove_place_is_movable(env, assumptions, state, place) => state)

2 tests failed proving this premise:


Source location: tests/borrowck.rs:453

fn foo() -> Datum {
    exists<'r0, 'r1> {
        let x: Datum = Datum { value: 0 _ u32 };
        let r: &'r0 Datum = &'r1 x;
        let y: Datum = *r;
        return y;
    }
}
Failed proof tree
… (200 of 1236 nodes shown)

Source location: tests/borrowck.rs:1112

fn foo() -> Datum {
    exists<'r0, 'r1> {
        let x: Datum = Datum { value: 0 _ u32 };
        let r: &mut 'r0 Datum = &mut 'r1 x;
        let y: Datum = *r;
        return y;
    }
}
Failed proof tree
… (200 of 1236 nodes shown)