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
prove_predicate_list (some)prove_predicate_list.rs:28args
prove_predicate (forall)prove_predicate.rs:37args
scopeprove_predicate.rs:23prove_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
prove_predicate_list (some)prove_predicate_list.rs:28args
prove_predicate (forall)prove_predicate.rs:37args
scopeprove_predicate.rs:23prove_predicate (outlives)prove_predicate.rs:152args
prove_outlives (anything can be pending)prove_outlives.rs:96args
prove_after (prove_after)prove_after.rs:20args
prove_predicate_list (some)prove_predicate_list.rs:28args
prove_predicate (outlives)prove_predicate.rs:152args
prove_outlives (anything can be pending)prove_outlives.rs:96args
prove_after (prove_after)prove_after.rs:20args
prove_predicate_list (none)prove_predicate_list.rs:21args
prove_after (prove_after)prove_after.rs:20args
prove_predicate_list (none)prove_predicate_list.rs:21args