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_place_expr / local / premise let ty = state.local_variable(&local_id)?

Premise at line 574. Observed failure causes: inapplicable.

local
LineCoverageSource
5742(let ty = state.local_variable(&local_id)?)
──────── ("local")
57658(borrow_check_place_expr(_env, _assumptions, state, PlaceExpr::Var(local_id)) => (
TypedPlaceExpr::new(ty, TypedPlaceExpressionData::local(local_id)),
state,
))

2 tests failed proving this premise:


Source location: tests/mir_typeck.rs:280

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

Source location: tests/mir_typeck.rs:323

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