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 for_all_outlives_gives_any_lifetime

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

#[test]
fn for_all_outlives_gives_any_lifetime() {
    test_prove(
        Program::empty(),
        term("forall<T, 'x> {for<'a> T : 'a} => {T : 'x}"),
    )
    .assert_ok(expect!["{Constraints { env: Env { variables: [!ty_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