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 / turbofish / premise if fn_decl.binder.len() == args.len()

Premise at line 487. Observed failure causes: if_false.

turbofish
LineCoverageSource
486(let fn_decl = env.crates().fn_named(id)?)
4871(if fn_decl.binder.len() == args.len())
488N/A(let ty = Ty::rigid(RigidName::fn_def(id), args))
──────── ("turbofish")
4918(borrow_check_expr(env, _assumptions, state, Expr::Turbofish { id, args }, _places_live_on_exit) => (ty, state))

1 test failed proving this premise:


Source location: tests/mir_typeck.rs:401

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