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

Premise at line 422. Observed failure causes: failed_judgment.

bitwise xor
LineCoverageSource
421N/A(let expr = Expr::bin_op(lhs, BinOpKind::BitXor, rhs))
4222(borrow_check_expr(env, assumptions, state, expr, places_live_on_exit) => (ty, state))
──────── ("bitwise xor")
42415(borrow_check_expr(env, assumptions, state, Expr::BitXor { lhs, rhs }, places_live_on_exit) => (ty, state))

2 tests failed proving this premise:


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

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

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

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

How to read this page