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 to_refs

Source location: tests/borrowck.rs:4664

fn to_refs<'a>(list: &'a mut List) -> &'a mut u32 {
    exists<'r0, 'r1> {
        let result: &'a mut u32;
        'l: loop {
            result = &'r0 mut (*list).value;
            if true {
                let n: &'r1 mut List = next_from_field::<'r1>(&'r1 mut (*list).next);
                list = n;
            } else {
                return result;
            }
        }
    }
}

Rules proved (97)

JudgmentRuleAll tests of this rule
access_kind_for_place_usemove139 tests
access_permittedaccess_permitted142 tests
access_permitted_by_loanborrow of disjoint places63 tests
access_permitted_by_loanwrite-indirect23 tests
access_permitted_by_loansaccess_permitted_by_loans154 tests
borrow_checkborrow_check289 tests
borrow_check_blockbasic block289 tests
borrow_check_exprassign43 tests
borrow_check_exprcall82 tests
borrow_check_exprplace139 tests
borrow_check_exprref63 tests
borrow_check_exprtrue28 tests
borrow_check_exprturbofish58 tests
borrow_check_expr_has_tyblock209 tests
borrow_check_fn_reffn-ref84 tests
borrow_check_loopfixed-point23 tests
borrow_check_looploop20 tests
borrow_check_place_exprderef-ref59 tests
borrow_check_place_exprlocal142 tests
borrow_check_place_exprparens11 tests
borrow_check_place_exprstruct field24 tests
borrow_check_statementexists71 tests
borrow_check_statementexpr79 tests
borrow_check_statementif29 tests
borrow_check_statementlet125 tests
borrow_check_statementlet-no-init7 tests
borrow_check_statementloop23 tests
borrow_check_statementreturn110 tests
can_outliveexistential target21 tests
check_adtcheck adt71 tests
check_all_cratescheck all prefixes331 tests
check_associated_tycheck associated ty312 tests
check_associated_ty_valuecheck_associated_ty_value311 tests
check_coherencecheck_coherence331 tests
check_cratecheck crate331 tests
check_crate_itemadt71 tests
check_crate_itemfeature gate84 tests
check_crate_itemfree fn291 tests
check_crate_itemtrait331 tests
check_crate_itemtrait impl327 tests
check_drop_impl_always_applicablenot a Drop impl327 tests
check_fields_sizedstruct68 tests
check_fncheck fn317 tests
check_fn_bodyexpr fn body289 tests
check_fn_bodyno fn body309 tests
check_fn_bodytrusted fn body18 tests
check_fn_in_traitcheck fn in trait310 tests
check_free_fncheck free fn291 tests
check_safety_matchessafety matches327 tests
check_traitcheck trait331 tests
check_trait_implcheck_trait_impl327 tests
check_trait_impl_itemassociated ty value311 tests
check_trait_itemassociated ty in trait312 tests
check_trait_itemfn in trait310 tests
check_trait_manually_implementablenot Sized327 tests
drop_placesdrop_places289 tests
is_local_trait_reflocal trait322 tests
only_assumed_outlivesexistential65 tests
only_assumed_outlivesuniversal lifetime27 tests
orphan_checkorphan_check327 tests
overlap_check_impldifferent trait311 tests
overlap_check_implnot goal312 tests
overlap_check_implsame impl327 tests
prove_afterprove_after363 tests
prove_assignablesubtype223 tests
prove_eqexistential341 tests
prove_eqrigid318 tests
prove_eqsymmetric338 tests
prove_existential_var_eqexistential-nonvar73 tests
prove_existential_var_eqexistential-universal332 tests
prove_normalizenormalize-via-impl73 tests
prove_outlivesanything can be pending35 tests
prove_outlivesoutlive through assumption312 tests
prove_outlivesrigid types80 tests
prove_place_is_movablelocal126 tests
prove_predicatebuilt-in Sized30 tests
prove_predicateeq349 tests
prove_predicateoutlives321 tests
prove_predicateparameter well formed321 tests
prove_predicatepositive impl337 tests
prove_predicatesubtype228 tests
prove_predicatetrait ref is local328 tests
prove_predicate_listnone364 tests
prove_predicate_listsome363 tests
prove_sizedscalars24 tests
prove_sublifetime => outlives32 tests
prove_subrigid36 tests
prove_ty_is_refref23 tests
prove_ty_is_rigidnormalize17 tests
prove_ty_is_rigidrigid184 tests
prove_wfADT53 tests
prove_wfintegers and booleans187 tests
prove_wfreferences309 tests
prove_wftuples317 tests
prove_wfuniversal variables323 tests
record_place_usemove139 tests
verify_universal_outlivesverify_universal_outlives66 tests

Premises failed (0)

This test records no negative coverage.

Proof trees

Proof tree
… (200 of 2089 nodes shown)

How to read this page