error promoting type-tests from closures #108635
Labels
A-borrow-checker
Area: The borrow checker
A-NLL
Area: Non-lexical lifetimes (NLL)
C-bug
Category: This is a bug.
NLL-complete
Working towards the "valid code works" goal
T-types
Relevant to the types team, which will review and decide on the PR/issue.
The following should pass borrowck:
When promoting the type-test
I::Item::<'_>: 'static
from the closure to the parent function, we fail to do so because we can't express'_
in terms of universal regions because the corresponding free region doesn't have anexternal_name
?:rust/compiler/rustc_borrowck/src/region_infer/mod.rs
Line 1147 in 0b4ba4c
@rustbot label C-bug T-types A-NLL NLL-complete A-borrow-checker
The text was updated successfully, but these errors were encountered: