Test bar
Source location: tests/mir_typeck.rs:568
fn bar(v1: u32) -> u32 {
let v0: u32 = identity::<u32, u32>(v1);
return v0;
}
Rules proved (0)
This test records no positive coverage.
Premises failed (13)
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) | 79 tests |
| borrow_check_block | basic block | for_all(i in 0..stmts.len()) with(env, state) (b… (line 156, blamed at line 157) | not counted by the judgment view |
| borrow_check_statement | let | borrow_check_expr_has_ty(env, assumptions, state… (line 189) | 36 tests |
| borrow_check_expr_has_ty | block | borrow_check_expr(env, assumptions, state, expr,… (line 363) | 36 tests |
| borrow_check_expr | call | borrow_check_expr( env, assumptions, state, call… (line 455) | 6 tests |
| borrow_check_expr | turbofish | borrow_check_fn_ref(env, assumptions, state, id,… (line 566) | 6 tests |
| borrow_check_fn_ref | fn-ref | if binder.len() == args.len() (line 630) | 2 tests |
| check_free_fn | check free fn | check_fn(program, Env::default(), Predicates::t(… (line 24) | 81 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) | 79 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 73, blamed at line 74) | not counted by the judgment view |
| check_crate_item | free fn | check_free_fn(program, f, crate_id) => () (line 207) | 81 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:74check_crate_item failedmod.rs:179rule "free fn"mod.rs:207check_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:142rule "basic block"nll.rs:157borrow_check_statement failednll.rs:174args
rule "let"nll.rs:189borrow_check_expr_has_ty failednll.rs:350args
rule "block"nll.rs:363borrow_check_expr failednll.rs:371args
rule "call"nll.rs:455borrow_check_expr failednll.rs:371args
rule "turbofish"nll.rs:566borrow_check_fn_ref failednll.rs:616args
rule "fn-ref"nll.rs:630 (failed: if_false)