Lifetime bounds not propagated for associated type #77654
Labels
A-associated-items
Area: Associated items (types, constants & functions)
A-lifetimes
Area: Lifetimes / regions
C-bug
Category: This is a bug.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
When defining a trait with a lifetime bound and an associated type.
When constraining that associated type by another bound, that is not properly propagated when calling another function.
This came up here: getsentry/symbolic#277
Minified example:
playground link
I expected to see this happen:
All the three given functions should forward correctly.
Instead, this happened:
The first two functions give me the following error, and the suggestion is misleading as well, since the second function contains literally the trait bound thats in the suggestion.
Meta
rustc --version --verbose
:The text was updated successfully, but these errors were encountered: