Test outlives_one_lifetime_does_not_give_static
Source location: crates/formality-rust/src/prove/test/outlives.rs:42
#[test]
fn outlives_one_lifetime_does_not_give_static() {
test_prove(
Program::empty(),
term("forall<T, 'x> {T : 'x} => {T : 'static}"),
)
.assert_err(expect![[r#"
crates/formality-rust/src/prove/prove_via.rs:9:1: no applicable rules for prove_via { goal: !ty_0 : ' static, via: !ty_0 : !lt_1, assumptions: {!ty_0 : !lt_1}, env: Env { variables: [!ty_0, !lt_1], bias: Soundness, pending: [], allow_pending_outlives: false } }
crates/formality-rust/src/prove/prove_outlives.rs:8:1: no applicable rules for prove_outlives { a: !ty_0, b: ' static, assumptions: {!ty_0 : !lt_1}, env: Env { variables: [!ty_0, !lt_1], bias: Soundness, pending: [], allow_pending_outlives: false } }"#]]);
}
Rules proved (0)
This test records no positive coverage.
Premises failed (3)
The last column links to the premise’s page when the judgment view counts this failure against that premise. It does not when the premise is read as infallible, or when the failure was blamed inside a multi-line premise that carries no record on its own first line.
| Judgment | Rule | Premise | All tests of this premise |
|---|---|---|---|
| prove_predicate | assumption | prove_via(decls, env, assumptions, a, goal) => c (line 49) | 35 tests |
| prove_predicate | outlives | prove_outlives(decls, env, assumptions, a, b) =>… (line 151) | 10 tests |
| prove_predicate_list | some | prove_predicate(decls, env, assumptions, wc0) =>… (line 26) | 92 tests |
Proof trees
Failed proof tree
prove failedtest_util.rs:74args
ruletest_util.rs:74prove_predicate_list failedprove_predicate_list.rs:8args
rule "some"prove_predicate_list.rs:26prove_predicate failedprove_predicate.rs:23args
rule "assumption"prove_predicate.rs:49prove_via failedprove_via.rs:9args
rule "outlives"prove_predicate.rs:151prove_outlives failedprove_outlives.rs:8args