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

Judgment loan_cannot_outlive

judgment_fn! {
    /// Prove that the loan does not outlive any universal regions.
    fn loan_cannot_outlive(
        env: TypeckEnv,
        assumptions: Predicates,
        outlives: Set<PendingOutlives>,
        loan: Loan,
        lifetime: Lt,
    ) => () {
        /* rules omitted */
    }
}

Source: crates/formality-rust/src/check/borrow_check/nll.rs:1513

The number on each rule’s conclusion is positive coverage; the number on each premise is negative coverage. Click a number to browse the tests.

loan_cannot_outlive
LineCoverageSource
1525N/A(let outlived_by_loan = transitively_outlived_by(env, outlives, &loan.lt))
152629(if !outlived_by_loan.contains(&lifetime.upcast()))
──────── ("loan_cannot_outlive")
15289(loan_cannot_outlive(env, _assumptions, outlives, loan, lifetime) => ())

How to read this page