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

Premise at line 415. Observed failure causes: failed_judgment.

bitwise or
LineCoverageSource
414N/A(let expr = Expr::bin_op(lhs, BinOpKind::BitOr, rhs))
4153(borrow_check_expr(env, assumptions, state, expr, places_live_on_exit) => (ty, state))
──────── ("bitwise or")
41713(borrow_check_expr(env, assumptions, state, Expr::BitOr { lhs, rhs }, places_live_on_exit) => (ty, state))

3 tests failed proving this premise:


Source location: tests/borrowck.rs:5878 (all coverage from this test)

fn foo() -> () {
    let x: u32 = 1_u32;
    exists<'a> {
        let r: &'a mut u32 = &'a mut x;
        let y: u32 = x | *r;
    }
}
Failed proof tree

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

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

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

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

How to read this page