Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Test foo

Source location: tests/borrowck.rs:2734

fn foo<'a, 'b>(v1: &'a u32, v2: &'b u32) -> () {
    let output: &'b u32 = v2;
    loop {
        output = v1;
    }
}

Rules proved (0)

This test records no positive coverage.

Premises failed (19)

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.

JudgmentRulePremiseAll tests of this premise
borrow_checkborrow_checkborrow_check_block(env, assumptions, state, bloc… (line 135)79 tests
borrow_check_blockbasic blockfor_all(i in 0..stmts.len()) with(env, state) (b… (line 156, blamed at line 157)not counted by the judgment view
borrow_check_statementexprborrow_check_expr( env, assumptions, state, expr… (line 232)26 tests
borrow_check_statementloopborrow_check_loop(env, assumptions, state, body,… (line 249)9 tests
borrow_check_exprassignprove_assignable(env, assumptions, state, value_… (line 414)1 test
borrow_check_looploopborrow_check_block(env, assumptions, state, body… (line 652)9 tests
borrow_check_loopfixed-pointborrow_check_block(env, assumptions, state0, bod… (line 660)9 tests
prove_assignablesubtypeprove_sub_type(env, assumptions, state, a, b) =>… (line 1150)13 tests
verify_universal_outlivesverify_universal_outlivesfor_all(v in env.env.variables()) (only_assumed_… (line 19, blamed at line 20)not counted by the judgment view
only_assumed_outlivesuniversal lifetimefor_all(param in transitively_outlived_by(env, o… (line 48, blamed at line 49)not counted by the judgment view
can_outliveuniversal targetprove(&env.program, &env.env, assumptions, Atomi… (line 81)8 tests
check_free_fncheck free fncheck_fn(program, Env::default(), Predicates::t(… (line 24)81 tests
check_fncheck fnscope(enter_universally(env, &f.binder) => (env,… (line 48, blamed at line 54)not counted by the judgment view
check_fn_bodyexpr fn bodyborrow_check(typeck_env, assumptions, initial_st… (line 89)79 tests
check_all_cratescheck all prefixesfor_all(i in 0..crates.len()) (let program = cra… (line 52, blamed at line 54)not counted by the judgment view
check_cratecheck cratefor_all(item in &c.items) (check_crate_item(prog… (line 73, blamed at line 74)not counted by the judgment view
check_crate_itemfree fncheck_free_fn(program, f, crate_id) => () (line 207)81 tests
prove_predicateoutlivesprove_outlives(decls, env, assumptions, a, b) =>… (line 142)8 tests
prove_predicate_listsomeprove_predicate(decls, env, assumptions, wc0) =>… (line 26)67 tests

Proof trees

Failed proof tree

How to read this page