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 all_t_not_copy

Source location: crates/formality-rust/src/prove/test/magic_copy.rs:40

#[test]
fn all_t_not_copy() {
    test_prove(decls(), term("{} => {for<T> Copy(T)}")).assert_err(
    expect![[r#"
        crates/formality-rust/src/prove/prove_via.rs:9:1: no applicable rules for prove_via { goal: !ty_0 = u32, via: Copy(!ty_0), assumptions: {Copy(!ty_0)}, env: Env { variables: [!ty_0], bias: Soundness, pending: [], allow_pending_outlives: false } }

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

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

        crates/formality-rust/src/prove/prove_via.rs:9:1: no applicable rules for prove_via { goal: !ty_0 = u32, via: Copy(!ty_0), assumptions: {Copy(!ty_0)}, env: Env { variables: [!ty_0], bias: Soundness, pending: [], allow_pending_outlives: false } }

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

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

        crates/formality-rust/src/prove/prove_via.rs:9:1: no applicable rules for prove_via { goal: Magic(!ty_0), via: Copy(?ty_1), assumptions: {}, env: Env { variables: [!ty_0, ?ty_1], bias: Soundness, pending: [], allow_pending_outlives: false } }"#]]);
}

Rules proved (0)

This test records no positive coverage.

Premises failed (12)

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)21 tests
prove_eqsymmetricprove_eq(decls, env, assumptions, r, l) => env_c (line 38)17 tests
prove_eqnormalize-lprove_normalize(decls, env, assumptions, x) => C… (line 68)17 tests
prove_normalizenormalize-via-assumptionprove_normalize_via(decls, env, assumptions, a, … (line 36)14 tests
prove_predicateforallscope(enter_universally_with_constraints(env, bi… (line 34, blamed at line 35)not counted by the judgment view
prove_predicateassumptionprove_via(decls, env, assumptions, a, goal) => c (line 48)34 tests
prove_predicatepositive implscope(enter_existentially_with_constraints(env, … (line 60, blamed at line 71)not counted by the judgment view
prove_predicatepositive implscope(enter_existentially_with_constraints(env, … (line 60, blamed at line 78)not counted by the judgment view
prove_predicatetrait implied boundscope(enter_existentially_with_constraints(env, … (line 107, blamed at line 108)not counted by the judgment view
prove_predicatetrait implied boundscope(enter_existentially_with_constraints(env, … (line 107, blamed at line 109)not counted by the judgment view
prove_predicateeqprove_eq(decls, env, assumptions, a, b) => c (line 115)17 tests
prove_predicate_listsomeprove_predicate(decls, env, assumptions, wc0) =>… (line 26)67 tests

Proof trees

Failed proof tree

How to read this page