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 not_well_formed_adt

Source location: crates/formality-rust/src/prove/test/adt_wf.rs:44

#[test]
fn not_well_formed_adt() {
    let assumptions: Wcs = Wcs::t();
    let goal: Parameter = term("X<u64>");
    prove(
        decls(),
        Env::default(),
        assumptions,
        Predicate::WellFormed(goal),
    )
    .assert_err(expect![[r#"
        crates/formality-rust/src/prove/prove_via.rs:8:1: no applicable rules for prove_via { goal: u64 = u32, via: Foo(u64), assumptions: {Foo(u64)}, env: Env { variables: [], bias: Soundness, pending: [], allow_pending_outlives: false } }

        crates/formality-rust/src/prove/prove_normalize.rs:54:1: no applicable rules for prove_normalize_via { goal: u64, via: Foo(u64), assumptions: {Foo(u64)}, env: Env { variables: [], bias: Soundness, pending: [], allow_pending_outlives: false } }

        crates/formality-rust/src/prove/prove_normalize.rs:54:1: no applicable rules for prove_normalize_via { goal: u32, via: Foo(u64), assumptions: {Foo(u64)}, env: Env { variables: [], bias: Soundness, pending: [], allow_pending_outlives: false } }

        the rule "trait implied bound" at (prove_wc.rs) failed because
          expression evaluated to an empty collection: `decls.trait_invariants()`"#]]);
}

Rules proved (0)

This test records no positive coverage.

Premises failed (11)

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
prove_afterprove_afterprove(decls, c1.env(), assumptions, goal) => c2 (line 19)18 tests
prove_eqsymmetricprove_eq(decls, env, assumptions, r, l) => env_c (line 38)15 tests
prove_eqnormalize-lprove_normalize(decls, env, assumptions, x) => C… (line 68)15 tests
prove_normalizenormalize-via-assumptionprove_normalize_via(decls, env, assumptions, a, … (line 32)10 tests
prove_wcassumptionprove_via(decls, env, assumptions, a, goal) => c (line 48)21 tests
prove_wcpositive implprove(decls, env, co_assumptions, Wcs::all_eq(&t… (line 73)7 tests
prove_wctrait implied boundti in decls.trait_invariants() (line 109)14 tests
prove_wceqprove_eq(decls, env, assumptions, a, b) => c (line 119)15 tests
prove_wcparameter well formedprove_wf(decls, env, assumptions, p) => c (line 153)3 tests
prove_wc_listsomeprove_wc(decls, env, assumptions, wc0) => c (line 26)42 tests
prove_wfADTprove_after(decls, c, assumptions, &t.where_clau… (line 64)4 tests

Proof trees

Failed proof tree