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_statement / let-no-init / premise prove_ty_is_wf(env, assumptions, state, ty) => state

Premise at line 203. Observed failure causes: failed_judgment.

let-no-init
LineCoverageSource
2031(prove_ty_is_wf(env, assumptions, state, ty) => state)
204✗(let state = state.with_local_in_scope(&env.env, label, id, ty)?)
205N/A(let state = state.with_uninit(&PlaceExpr::Var(id.clone())))
──────── ("let-no-init")
2076(borrow_check_statement(env, assumptions, state, Stmt::Let { label, id, ty, init: None }, places_live_on_exit) => (env, state))

1 test failed proving this premise:


Source location: tests/mir_typeck.rs:321 (all coverage from this test)

fn foo() -> () {
    let s2: S2<S1>;
}
Failed proof tree

How to read this page