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:1476

fn foo() -> Datum {
    exists<'r0, 'r1> {
        let x: Datum = Datum { value: 0_u32 };
        let r: &'r0 mut Datum = &'r1 mut x;
        let y: Datum = *r;
        return y;
    }
}

Rules proved (0)

This test records no positive coverage.

Premises failed (26)

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)113 tests
borrow_check_blockbasic blockfor_all(i in 0..stmts.len()) with(env, state) (b… (line 158, blamed at line 159)not counted by the judgment view
borrow_check_statementletborrow_check_expr_has_ty(env, assumptions, state… (line 191)53 tests
borrow_check_statementexistsscope(env.enter_existentially(&with_variables(bi… (line 304, blamed at line 306)not counted by the judgment view
borrow_check_statementexistsscope(env.enter_existentially(&with_variables(bi… (line 314, blamed at line 316)not counted by the judgment view
borrow_check_statementexistsscope(env.enter_existentially(&with_variables(bi… (line 328, blamed at line 331)not counted by the judgment view
borrow_check_expr_has_tyblockborrow_check_expr(env, assumptions, state, expr,… (line 367)54 tests
borrow_check_exprplaceprove_place_is_movable(env, assumptions, state, … (line 587)3 tests
prove_ty_is_copytraitenv.prove_goal(assumptions, &state, goal) => sta… (line 1093)3 tests
prove_place_is_movablecopyprove_ty_is_copy(env, assumptions, state, &place… (line 1138)3 tests
check_free_fncheck free fncheck_fn(program, Env::default(), Predicates::t(… (line 24)116 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)114 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 74, blamed at line 75)not counted by the judgment view
check_crate_itemfree fncheck_free_fn(program, f, crate_id) => () (line 208)116 tests
prove_afterprove_afterprove(decls, c1.env(), assumptions, goal) => c2 (line 19)28 tests
prove_eqsymmetricprove_eq(decls, env, assumptions, r, l) => env_c (line 38)16 tests
prove_eqnormalize-lprove_normalize(decls, env, assumptions, x) => C… (line 68)16 tests
prove_eqnormalize-lprove_after(decls, c, assumptions, eq(y, z)) => … (line 69)3 tests
prove_normalizenormalize-via-assumptionprove_normalize_via(decls, env, assumptions, a, … (line 36)13 tests
prove_predicateassumptionprove_via(decls, env, assumptions, a, goal) => c (line 49)35 tests
prove_predicatepositive implscope(enter_existentially_with_constraints(decls… (line 61, blamed at line 72)not counted by the judgment view
prove_predicatetrait implied boundti in decls.trait_invariants() (line 115)28 tests
prove_predicateeqprove_eq(decls, env, assumptions, a, b) => c (line 124)16 tests
prove_predicate_listsomeprove_predicate(decls, env, assumptions, wc0) =>… (line 26)92 tests

Proof trees

Failed proof tree
… (200 of 1420 nodes shown)

How to read this page