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_sub / normalize-r / premise prove_normalize(decls, env, assumptions, y) => Constrained(z, c)

Premise at line 35. Observed failure causes: failed_judgment.

normalize-r
LineCoverageSource
355(prove_normalize(decls, env, assumptions, y) => Constrained(z, c))
36(prove_after(decls, c, assumptions, Relation::sub(x, &z)) => c)
──────── ("normalize-r")
382(prove_sub(decls, env, assumptions, x, y) => 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