Test foo
Source location: tests/mir_typeck.rs:321
fn foo() -> () {
let s2: S2<S1>;
}
Rules proved (0)
This test records no positive coverage.
Premises failed (14)
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 |
|---|---|---|---|
| borrow_check | borrow_check | borrow_check_block(env, assumptions, state, bloc… (line 138) | 60 tests |
| borrow_check_block | basic block | for_all(i in 0..stmts.len()) with(env, state) (b… (line 159, blamed at line 160) | not counted by the judgment view |
| borrow_check_statement | let | prove_ty_is_wf(env, assumptions, state, ty) => s… (line 189) | 1 test |
| check_free_fn | check free fn | check_fn(program, Env::default(), Wcs::t(), f, c… (line 24) | 61 tests |
| check_fn | check fn | check_fn_body(program, env, assumptions, body, i… (line 55) | 60 tests |
| check_fn_body | expr fn body | borrow_check(typeck_env, assumptions, initial_st… (line 90) | 60 tests |
| check_all_crates | check all prefixes | for_all(i in 0..crates.len()) (let program = cra… (line 51, blamed at line 53) | not counted by the judgment view |
| check_crate | check crate | for_all(item in &c.items) (check_crate_item(prog… (line 72, blamed at line 73) | not counted by the judgment view |
| check_crate_item | free fn | check_free_fn(program, f, crate_id) => () (line 206) | 61 tests |
| prove_after | prove_after | prove(decls, c1.env(), assumptions, goal) => c2 (line 19) | 18 tests |
| prove_wc | trait implied bound | ti in decls.trait_invariants() (line 109) | 14 tests |
| prove_wc | parameter well formed | prove_wf(decls, env, assumptions, p) => c (line 153) | 3 tests |
| prove_wc_list | some | prove_wc(decls, env, assumptions, wc0) => c (line 26) | 42 tests |
| prove_wf | ADT | prove_after(decls, c, assumptions, &t.where_clau… (line 64) | 4 tests |
Proof trees
Failed proof tree
check_all_crates failedmod.rs:41args
rule "check all prefixes"mod.rs:53check_crate failedmod.rs:60args
rule "check crate"mod.rs:73check_crate_item failedmod.rs:178rule "free fn"mod.rs:206check_free_fn failedfns.rs:14args
rule "check free fn"fns.rs:24check_fn failedfns.rs:31args
rule "check fn"fns.rs:55check_fn_body failedfns.rs:62args
rule "expr fn body"fns.rs:90borrow_check failednll.rs:127args
rule "borrow_check"nll.rs:138borrow_check_block failednll.rs:145rule "basic block"nll.rs:160borrow_check_statement failednll.rs:177args
rule "let"nll.rs:189prove failedfunction.rs:250args
rulefunction.rs:250prove_wc_list failedprove_wc_list.rs:8args
rule "some"prove_wc_list.rs:26prove_wc failedprove_wc.rs:21args
rule "parameter well formed"prove_wc.rs:153prove_wf failedprove_wf.rs:11args
rule "ADT"prove_wf.rs:64prove_after failedprove_after.rs:8args
rule "prove_after"prove_after.rs:19prove failedprove_after.rs:19args
ruleprove_after.rs:19prove_wc_list failedprove_wc_list.rs:8args
rule "some"prove_wc_list.rs:26prove_wc failedprove_wc.rs:21args
rule "trait implied bound"prove_wc.rs:109 (failed: empty_collection)