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

Test test_forall_not_local

Source location: crates/formality-rust/src/prove/test/is_local.rs:11

#[test]
fn test_forall_not_local() {
    test_prove(Program::empty(), term("{} => {for<T> @IsLocal(Debug(T))}")).assert_err(expect![[r#"
        crates/formality-rust/src/prove/prove_normalize.rs:22:1: no applicable rules for prove_normalize { p: !ty_1, assumptions: {}, env: Env { variables: [!ty_1], bias: Soundness, pending: [], allow_pending_outlives: false } }

        the rule "local trait" at (is_local.rs) failed because
          condition evaluated to false: `decls.is_local_trait_id(&goal.trait_id)`
            decls = program([], 222)
            &goal.trait_id = Debug"#]]);
}

Rules proved (0)

This test records no positive coverage.

Premises failed (6)

The last column links to the premise’s page when the judgment view counts this failure against that premise. It does not when the premise is read as infallible, or when the failure was blamed inside a multi-line premise that carries no record on its own first line.

JudgmentRulePremiseAll tests of this premise
is_local_trait_reflocal traitif decls.is_local_trait_id(&goal.trait_id) (line 216)12 tests
is_local_trait_reflocal parameteris_local_parameter(decls, env, assumptions, &goa… (line 224)12 tests
is_local_parameterlocal parameterprove_normalize(decls, env, assumptions, goal) =… (line 305)12 tests
prove_predicateforallscope(enter_universally_with_constraints(env, bi… (line 34, blamed at line 35)not counted by the judgment view
prove_predicatetrait ref is localis_local_trait_ref(decls, env, assumptions, trai… (line 136)12 tests
prove_predicate_listsomeprove_predicate(decls, env, assumptions, wc0) =>… (line 26)67 tests

Proof trees

Failed proof tree

How to read this page