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

Premise at line 408. Observed failure causes: failed_judgment.

remainder
LineCoverageSource
407N/A(let expr = Expr::bin_op(lhs, BinOpKind::Rem, rhs))
4082(borrow_check_expr(env, assumptions, state, expr, places_live_on_exit) => (ty, state))
──────── ("remainder")
41011(borrow_check_expr(env, assumptions, state, Expr::Rem { lhs, rhs }, places_live_on_exit) => (ty, state))

2 tests failed proving this premise:


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

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

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

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

How to read this page