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 uncovered_mut_ref_T

Source location: tests/coherence_orphan.rs:141

#[test]
fn uncovered_mut_ref_T() {
    FormalityTest::new(crates![crate core {
        trait CoreTrait<T> {}
    },
    crate foo {
        struct FooStruct {}
        impl<'a, T> CoreTrait<FooStruct> for &'a mut T where T: 'a {}
    }])
    .err(expect_test::expect![[r#"
        crates/formality-rust/src/prove/prove_via.rs:9:1: no applicable rules for prove_via { goal: @ IsLocal(CoreTrait(&!lt_1 mut !ty_0, FooStruct)), via: !ty_0 : !lt_1, assumptions: {!ty_0 : !lt_1}, env: Env { variables: [!lt_1, !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: !ty_0 : !lt_1, assumptions: {!ty_0 : !lt_1}, env: Env { variables: [!lt_1, !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: &!lt_1 mut !ty_0, via: !ty_0 : !lt_1, assumptions: {!ty_0 : !lt_1}, env: Env { variables: [!lt_1, !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: !ty_0 : !lt_1, assumptions: {!ty_0 : !lt_1}, env: Env { variables: [!lt_1, !ty_0], bias: Soundness, pending: [], allow_pending_outlives: false } }

        the rule "rigid" at (is_local.rs) failed because
          condition evaluated to false: `!is_fundamental(decls, name)`
            decls = program([crate core { trait CoreTrait <ty, ty> { } }, crate foo { struct FooStruct { } impl <lt, ty> CoreTrait <FooStruct> for &^lt0_0 mut ^ty0_1 where ^ty0_1 : ^lt0_0 { } }], 222)
            name = &(mut)

        crates/formality-rust/src/prove/prove_normalize.rs:55:1: no applicable rules for prove_normalize_via { goal: &!lt_1 mut !ty_0, via: !ty_0 : !lt_1, assumptions: {!ty_0 : !lt_1}, env: Env { variables: [!lt_1, !ty_0], 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([crate core { trait CoreTrait <ty, ty> { } }, crate foo { struct FooStruct { } impl <lt, ty> CoreTrait <FooStruct> for &^lt0_0 mut ^ty0_1 where ^ty0_1 : ^lt0_0 { } }], 222)
            &goal.trait_id = CoreTrait"#]])
}

Rules proved (0)

This test records no positive coverage.

Premises failed (16)

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
check_coherencecheck_coherencefor_all(trait_impl in current_crate_impls) (orph… (line 19, blamed at line 20)not counted by the judgment view
orphan_checkorphan_checkscope(enter_universally(Env::default(), &impl_a.… (line 35, blamed at line 37)not counted by the judgment view
check_all_cratescheck all prefixesfor_all(i in 0..crates.len()) (let program = cra… (line 52, blamed at line 54)not counted by the judgment view
check_cratecheck cratecheck_coherence(program, c) => () (line 75)20 tests
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_trait_reflocal parameterfor_all(decls, env, assumptions, &goal.parameter… (line 229)4 tests
is_not_downstreamrigidif !is_fundamental(decls, name) (line 262)3 tests
is_not_downstreamfundamental typefor_all(decls, env, assumptions, parameters, &is… (line 270)3 tests
is_not_downstreamvia normalizeprove_normalize(decls, env, assumptions, paramet… (line 276)4 tests
is_local_parameterlocal parameterprove_normalize(decls, env, assumptions, goal) =… (line 305)12 tests
is_local_parameterfundamental rigid typefor_all(decls, env, assumptions, type_params, &i… (line 316)5 tests
prove_normalizenormalize-via-assumptionprove_normalize_via(decls, env, assumptions, a, … (line 36)14 tests
prove_predicateassumptionprove_via(decls, env, assumptions, a, goal) => c (line 48)34 tests
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