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 let fn_decl = env.crates().fn_named(id)?

Premise at line 476. Observed failure causes: inapplicable.

fn-name
LineCoverageSource
474(if let PlaceExpr::Var(id) = place)
475(if !state.has_local(id))
4761(let fn_decl = env.crates().fn_named(id)?)
4771(if fn_decl.binder.len() == 0)
478N/A(let ty = Ty::rigid(RigidName::fn_def(id), ()))
──────── ("fn-name")
4817(borrow_check_expr(env, _assumptions, state, Expr::Place(place), _places_live_on_exit) => (ty, state))

1 test 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