Test for_all_outlives_gives_static
Source location: crates/formality-rust/src/prove/test/outlives.rs:24
#[test]
fn for_all_outlives_gives_static() {
test_prove(
Program::empty(),
term("forall<T> {for<'a> T : 'a} => {T : 'static}"),
)
.assert_ok(expect!["{Constraints { env: Env { variables: [!ty_1], 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
prove_predicate_list (some)prove_predicate_list.rs:28args
prove_predicate (outlives)prove_predicate.rs:152args
prove_outlives (outlive static through assumption)prove_outlives.rs:87args
prove_after (prove_after)prove_after.rs:20args
prove_predicate_list (none)prove_predicate_list.rs:21args