NLL ignores lifetimes on associated constants in range patterns #58299
Labels
A-associated-items
Area: Associated items (types, constants & functions)
A-lifetimes
Area: Lifetimes / regions
A-NLL
Area: Non-lexical lifetimes (NLL)
I-unsound
Issue: A soundness hole (worst kind of bug), see: https://en.wikipedia.org/wiki/Soundness
NLL-sound
Working towards the "invalid code does not compile" goal
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Uh oh!
There was an error while loading. Please reload this page.
STR
Tested on nightly 1.34, but should be present on other versions
Expected Result
Code behaves as with AST, causing an error because
A::<'a>
does not implementY
(onlyA<'static>
does).Actual Result
Code compiles.
The text was updated successfully, but these errors were encountered: