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_fn_ref / fn-ref / premise let Fn { binder, .. } = env.crates().fn_named(id)?

Premise at line 629. Observed failure causes: inapplicable.

fn-ref
LineCoverageSource
6291(let Fn { binder, .. } = env.crates().fn_named(id)?)
6302(if binder.len() == args.len())
631✗(let FnBoundData { where_clauses, .. } = binder.instantiate_with(args)?)
6325(prove_where_clauses(env, assumptions, state, where_clauses) => state)
633N/A(let ty = Ty::rigid(RigidName::fn_def(id), args))
──────── ("fn-ref")
63543(borrow_check_fn_ref(env, assumptions, state, id, args) => (ty, state))

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

How to read this page