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_wc / subtype / premise prove_sub(decls, env, assumptions, a, b) => c

Premise at line 133. Observed failure causes: failed_judgment.

subtype
LineCoverageSource
1335(prove_sub(decls, env, assumptions, a, b) => c)
──────── ("subtype")
13567(prove_wc(decls, env, assumptions, WcData::Relation(Relation::Sub(a, b))) => c)

5 tests failed proving this premise:


Source location: tests/mir_typeck.rs:147

fn foo (b: bool) -> u32 {
    if b {
        return 1 _ u32;
    } else {
        return false;
    }
}
Failed proof tree

Source location: tests/mir_typeck.rs:300

fn bar(v1: ()) -> () {
    let v0: () = foo(v1);
    return v0;
}
Failed proof tree

Source location: tests/mir_typeck.rs:360

fn bar(v1: u32) -> u32 {
    let v0: u32 = identity::<bool>(v1);
    return v0;
}
Failed proof tree

Source location: tests/mir_typeck.rs:421

fn foo (v1: ()) -> u32 {
    return v1;
}
Failed proof tree

Source location: tests/mir_typeck.rs:630

fn foo (v1: u32) -> u32 {
    let v2: Dummy = Dummy { value: false };
    return v1;
}
Failed proof tree