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: prove_wf / static lifetime

static lifetime
LineCoverageSource
──────── ("static lifetime")
741(prove_wf(_decls, env, _assumptions, LtData::Static) => Constraints::none(env))

1 test exercised this rule:


Source location: tests/well_formed_trait_ref.rs:71

#[test]
fn static_lifetime_param() {
    FormalityTest::new(crates![crate foo {
        trait Trait1<'a> {}

        struct S1 {}

        impl Trait1<'static> for S1 {}

        struct S2 where S1: Trait1<'static> {}
    }])
    .skip_execute()
    .ok()
}
Proof tree
… (200 of 1058 nodes shown)