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 outlives_every_lifetime_given_static

Source location: crates/formality-rust/src/prove/test/binder_scope.rs:27

#[test]
fn outlives_every_lifetime_given_static() {
    test_prove_pending_outlives(
        Program::empty(),
        term("forall<'x> {'x : 'static} => {for<'a> 'x : 'a}"),
    )
    .assert_ok(expect!["{Constraints { env: Env { variables: [!lt_1], bias: Soundness, pending: [], allow_pending_outlives: true }, known_true: true, substitution: {} }, Constraints { env: Env { variables: [!lt_1], bias: Soundness, pending: [!lt_1 : ' static], allow_pending_outlives: true }, known_true: true, substitution: {} }}"]);
}

Rules proved (7)

Premises failed (0)

This test records no negative coverage.

Proof trees

Proof tree

How to read this page