Test foo
Source location: tests/mir_typeck.rs:1270
fn foo() -> () {
let x: i32 = 10_i32 - 3_u32;
}
Rules proved (0)
This test records no positive coverage.
Premises failed (17)
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 135) | 113 tests |
| borrow_check_block | basic block | for_all(i in 0..stmts.len()) with(env, state) (b… (line 158, blamed at line 159) | not counted by the judgment view |
| borrow_check_statement | let | borrow_check_expr_has_ty(env, assumptions, state… (line 191) | 53 tests |
| borrow_check_expr_has_ty | block | borrow_check_expr(env, assumptions, state, expr,… (line 367) | 54 tests |
| borrow_check_expr_has_ty | block | prove_assignable(env, assumptions, state, ty_exp… (line 368) | 13 tests |
| borrow_check_expr | binop | borrow_check_expr_has_ty(env, assumptions, state… (line 526) | 8 tests |
| prove_assignable | subtype | prove_sub_type(env, assumptions, state, a, b) =>… (line 1210) | 22 tests |
| check_free_fn | check free fn | check_fn(program, Env::default(), Predicates::t(… (line 24) | 116 tests |
| check_fn | check fn | scope(enter_universally(env, &f.binder) => (env,… (line 48, blamed at line 54) | not counted by the judgment view |
| check_fn_body | expr fn body | borrow_check(typeck_env, assumptions, initial_st… (line 89) | 114 tests |
| check_all_crates | check all prefixes | for_all(i in 0..crates.len()) (let program = cra… (line 52, blamed at line 54) | not counted by the judgment view |
| check_crate | check crate | for_all(item in &c.items) (check_crate_item(prog… (line 74, blamed at line 75) | not counted by the judgment view |
| check_crate_item | free fn | check_free_fn(program, f, crate_id) => () (line 208) | 116 tests |
| prove_predicate | subtype | prove_sub(decls, env, assumptions, a, b) => c (line 130) | 20 tests |
| prove_predicate_list | some | prove_predicate(decls, env, assumptions, wc0) =>… (line 26) | 92 tests |
| prove_sub | normalize-l | prove_normalize(decls, env, assumptions, x) => C… (line 27) | 20 tests |
| prove_sub | normalize-r | prove_normalize(decls, env, assumptions, y) => C… (line 34) | 20 tests |
Proof trees
Failed proof tree
check_all_crates failedmod.rs:42args
rule "check all prefixes"mod.rs:54check_crate failedmod.rs:61args
rule "check crate"mod.rs:75check_crate_item failedmod.rs:180rule "free fn"mod.rs:208check_free_fn failedfns.rs:14args
rule "check free fn"fns.rs:24check_fn failedfns.rs:31args
rule "check fn"fns.rs:54check_fn_body failedfns.rs:61args
rule "expr fn body"fns.rs:89borrow_check failednll.rs:124args
rule "borrow_check"nll.rs:135borrow_check_block failednll.rs:144rule "basic block"nll.rs:159borrow_check_statement failednll.rs:176args
rule "let"nll.rs:191borrow_check_expr_has_ty failednll.rs:354args
rule "block"nll.rs:367borrow_check_expr failednll.rs:375args
rule "binop"nll.rs:526borrow_check_expr_has_ty failednll.rs:354args
rule "block"nll.rs:368prove_assignable failednll.rs:1192args
rule "subtype"nll.rs:1210prove failedfunction.rs:250args
rulefunction.rs:250prove_predicate_list failedprove_predicate_list.rs:8args
rule "some"prove_predicate_list.rs:26prove_predicate failedprove_predicate.rs:23args
rule "subtype"prove_predicate.rs:130prove_sub failedprove_sub.rs:12args
rule "normalize-l"prove_sub.rs:27prove_normalize failedprove_normalize.rs:22args
rule "normalize-r"prove_sub.rs:34prove_normalize failedprove_normalize.rs:22args