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 if fn_decl.binder.len() == 0

Premise at line 517. Observed failure causes: if_false.

fn-name
LineCoverageSource
514(if let PlaceExpr::Var(id) = place)
515(if !state.has_local(id))
5161(let fn_decl = env.crates().fn_named(id)?)
5171(if fn_decl.binder.len() == 0)
518N/A(let ty = Ty::rigid(RigidName::fn_def(id), ()))
──────── ("fn-name")
5217(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:323

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