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: prove_place_is_movable / field / premise if let None = env.program.find_drop_impl(adt_id)

Premise at line 1001. Observed failure causes: if_let.

field
LineCoverageSource
10011(if let None = env.program.find_drop_impl(adt_id))
1002(prove_place_is_movable(env, assumptions, state, prefix) => state)
──────── ("field")
10043(prove_place_is_movable(
env,
assumptions,
state,
TypedPlaceExpressionData::Field(prefix, _, adt_id, _),
) => state)

1 test failed proving this premise:


Source location: tests/borrowck.rs:3398

fn foo(f: Pair) -> () {
    let s: Datum = f.x;
}
Failed proof tree