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: borrow_check_expr / place / premise borrow_check_place_expr(env, assumptions, state, place) => (place, state)

Premise at line 583. Observed failure causes: failed_judgment.

place
LineCoverageSource
5833(borrow_check_place_expr(env, assumptions, state, place) => (place, state))
584✗(access_kind_for_place_use(env, assumptions, state, place) => (access_kind, state))
58520(access_permitted(env, assumptions, state, Access::new(access_kind, place), places_live_on_exit) => state)
586✗(record_place_use(state, access_kind, place) => state)
5873(prove_place_is_movable(env, assumptions, state, place) => state)
──────── ("place")
589139(borrow_check_expr(env, assumptions, state, Expr::Place(place), places_live_on_exit) => (&place.ty, state))

3 tests failed proving this premise:


Source location: tests/mir_typeck.rs:345 (all coverage from this test)

fn bar() -> u32 {
    let v1: u32 = foo(0_u32);
    return v1;
}
Failed proof tree

Source location: tests/mir_typeck.rs:416 (all coverage from this test)

fn bar(v1: u32) -> u32 {
    let v0: u32 = identity(v1);
    return v0;
}
Failed proof tree

Source location: tests/mir_typeck.rs:2035 (all coverage from this test)

fn main() -> () {
    needs_all();
}
Failed proof tree

How to read this page