GAT: Surprising lifetime mismatch / mismatched types (depending on GAT being Sized) #92798
Labels
A-GATs
Area: Generic associated types (GATs)
A-lifetimes
Area: Lifetimes / regions
A-trait-system
Area: Trait system
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:
(Playground)
I expected the code to be valid.
Instead, I got the following compiler error:
Meta
On Playground with version:
But error also happens on my local machine with:
rustc --version --verbose
:Further info
Maybe this bug is solved by #92191?
@QuineDot provided the following example, which might also serve as an additional test case:
(Playground)
Errors:
The text was updated successfully, but these errors were encountered: