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_predicate / forall / premise scope(enter_universally_with_constraints(decls, env, assumptions, binder) => (env, p1)) with(c) (prove_predicate(decls, env, assumptions, p1) => c)

Premise at line 35. Observed failure causes: failed_judgment.

forall
LineCoverageSource
354(scope(enter_universally_with_constraints(decls, env, assumptions, binder) => (env, p1)) with(c)
(prove_predicate(decls, env, assumptions, p1) => c))
──────── ("forall")
3826(prove_predicate(decls, env, assumptions, Predicate::ForAll(binder)) => c)

4 tests failed proving this premise:


Source location: crates/formality-rust/src/prove/test/binder_scope.rs:34 (all coverage from this test)

#[test]
fn outlived_by_every_lifetime() {
    test_prove_pending_outlives(Program::empty(), term("exists<'x> {} => {for<'a> 'a : 'x}"))
        .assert_err(expect![[r#"
            failed at (proven_set.rs) because
              `!lt_1 : ?lt_0` cannot be restated without `!lt_1`"#]]);
}
Failed proof tree

Source location: crates/formality-rust/src/prove/test/binder_scope.rs:42 (all coverage from this test)

#[test]
fn every_lifetime_outlives_static() {
    test_prove_pending_outlives(Program::empty(), term("{} => {for<'a> 'a : 'static}")).assert_err(
        expect![[r#"
            failed at (proven_set.rs) because
              `!lt_1 : ' static` cannot be restated without `!lt_1`"#]],
    );
}
Failed proof tree

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

fn main() -> () {
    needs_all();
}
Failed proof tree

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

fn main() -> () {
    let v0: u32 = 0_u32;
    exists<'r> {
        let v1: &'r u32 = &'r v0;
        needs_all::<&'r u32>(v1);
    }
}
Failed proof tree

How to read this page