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 at crates/formality-rust/src/check/borrow_check/nll.rs:1313

Signature:

loan_cannot_outlive(env: TypeckEnv, assumptions: Wcs, outlives: Set<PendingOutlives>, loan: Loan, lifetime: Lt,) => ()

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
1325N/A(let outlived_by_loan = transitively_outlived_by(env, outlives, &loan.lt))
132615(if !outlived_by_loan.contains(&lifetime.upcast()))
──────── ("loan_cannot_outlive")
1328(loan_cannot_outlive(env, _assumptions, outlives, loan, lifetime) => ())