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 559. Observed failure causes: failed_judgment.

fn-name
LineCoverageSource
557✗(if let PlaceExpr::Var(id) = place)
558✗(if !state.has_local(id))
5592(borrow_check_fn_ref(env, assumptions, state, id, Vec::<Parameter>::new()) => (ty, state))
──────── ("fn-name")
56114(borrow_check_expr(env, assumptions, state, Expr::Place(place), _places_live_on_exit) => (ty, state))

2 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

How to read this page