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

Premise at line 390. Observed failure causes: failed_judgment.

multiplication
LineCoverageSource
389N/A(let expr = Expr::BinOp { lhs: lhs.clone(), op: BinOpKind::Mul, rhs: rhs.clone() })
3902(borrow_check_expr(env, assumptions, state, expr, places_live_on_exit) => (ty, state))
──────── ("multiplication")
3927(borrow_check_expr(env, assumptions, state, Expr::Mul { lhs, rhs }, places_live_on_exit) => (ty, state))

2 tests failed proving this premise:


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

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

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

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

How to read this page