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

Positive coverage: is_local_parameter / local parameter

local parameter
LineCoverageSource
2916(prove_normalize(decls, env, assumptions, goal) => Constrained(p, c1))
292N/A(let assumptions = c1.substitution().apply(assumptions))
2932(is_local_parameter(decls, c1.env(), assumptions, p) => c2)
──────── ("local parameter")
2951(is_local_parameter(decls, env, assumptions, goal) => c1.seq(c2))

1 test exercised this rule:


Source location: tests/coherence_orphan.rs:84

#[test]
fn mirror_FooStruct() {
    FormalityTest::new(crates![crate core {
        trait CoreTrait {}

        trait Mirror {
            type Assoc : [];
        }

        impl<T> Mirror for T {
            type Assoc = T;
        }
    },
    crate foo {
        struct FooStruct {}
        impl CoreTrait for <FooStruct as Mirror>::Assoc {}
    }])
    .skip_execute()
    .ok()
}
Proof tree