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 / division / premise borrow_check_expr(env, assumptions, state, expr, places_live_on_exit) => (ty, state)

Premise at line 388. Observed failure causes: failed_judgment.

division
LineCoverageSource
387N/A(let expr = Expr::bin_op(lhs, BinOpKind::Div, rhs))
3882(borrow_check_expr(env, assumptions, state, expr, places_live_on_exit) => (ty, state))
──────── ("division")
39019(borrow_check_expr(env, assumptions, state, Expr::Div { lhs, rhs }, places_live_on_exit) => (ty, state))

2 tests failed proving this premise:


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

fn foo() -> () {
    let x: i32 = 12_i32 / 3_u32;
}
Failed proof tree

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

fn foo() -> () {
    let x: bool = true / false;
}
Failed proof tree

How to read this page