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

Positive coverage: prove_ty_is_rigid / normalize

normalize
LineCoverageSource
929(prove_normalize_ty(env, assumptions, state, ty) => (normalized_ty, state))
930(prove_ty_is_rigid(env, assumptions, state, normalized_ty) => (rigid_ty, state))
──────── ("normalize")
9322(prove_ty_is_rigid(env, assumptions, state, ty) => (rigid_ty, state))

2 tests exercised this rule:


Source location: tests/borrowck.rs:2277

fn min_problem_case_4<'a>(list: &mut 'a Map, list2: &mut 'a Map) -> u32 {
    exists<'r0> {
        let num: &mut 'r0 u32 = &mut 'r0 (*list).value;
        list = &mut 'a *list2;
        num;
        return 0 _ u32;
    }
}
Proof tree
… (200 of 1262 nodes shown)

Source location: tests/mir_typeck.rs:857

fn foo<'a>(v1: &'a Pair) -> u32 {
    exists<'r0> {
        let v2: u32 = (*v1).value;
        return v2;
    }
}
Proof tree
… (200 of 1140 nodes shown)