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 / continue / premise if let Some(places_live_on_continue) = state.live_after_continue(label)

Premise at line 268. Observed failure causes: if_let.

continue
LineCoverageSource
267(if state.scope_has_label(label))
2681(if let Some(places_live_on_continue) = state.live_after_continue(label))
269N/A(let locals_to_drop = state.locals_dropped_to_label(label))
2701(drop_places(env, assumptions, state, locals_to_drop, places_live_on_continue) => state)
271N/A(let state = state.with_continue(label))
272N/A(let state = state.diverges())
──────── ("continue")
2743(borrow_check_statement(env, assumptions, state, Stmt::Continue { label }, places_live_on_exit) => (env, state))

1 test failed proving this premise:


Source location: tests/mir_typeck.rs:825

fn foo() -> u32 {
    'a: {
        continue 'a;
    }
    return 0 _ u32;
}
Failed proof tree