HRTB with nested lifetimes and explicit lifetime bounds fails. #95921
Labels
A-higher-ranked
Area: Higher-ranked things (e.g., lifetimes, types, trait bounds aka HRTBs)
A-lifetimes
Area: Lifetimes / regions
A-trait-system
Area: Trait system
A-type-system
Area: Type system
C-bug
Category: This is a bug.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
T-types
Relevant to the types team, which will review and decide on the PR/issue.
I tried this code:
I expected to see this happen: code compiles fine
Instead, this happened:
Implementation is not general enough
ErrorRemoving the explicit lifetime bound on the impl fixes the problem:
Meta
Reproduced on both the current stable and nightly branches.
rustc --version --verbose
:Error Output
The text was updated successfully, but these errors were encountered: