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_static_gives_any_lifetime

Source location: crates/formality-rust/src/prove/test/outlives.rs:15

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

Rules proved (5)

Premises failed (0)

This test records no negative coverage.

Proof trees

Proof tree

How to read this page