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 / fn-name / premise borrow_check_fn_ref(env, assumptions, state, id, Vec::<Parameter>::new()) => (ty, state)

Premise at line 597. Observed failure causes: failed_judgment.

fn-name
LineCoverageSource
595✗(if let PlaceExpr::Var(id) = place)
596✗(if !state.has_local(id))
5973(borrow_check_fn_ref(env, assumptions, state, id, Vec::<Parameter>::new()) => (ty, state))
──────── ("fn-name")
59932(borrow_check_expr(env, assumptions, state, Expr::Place(place), _places_live_on_exit) => (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