error[E0275]: overflow evaluating the requirement <RefTFamily<T> as LifetimizedOutputFamily>::Output<'a> == _
#130728
Labels
A-GATs
Area: Generic associated types (GATs)
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 was trying to implement a generic
SelfBorrowingClosure
based on https://users.rust-lang.org/t/why-closure-cannot-return-a-reference-to-data-moved-into-closure/72655/6 but got a problem compiling the following piece of code:Minimal Reproducible Example (MRE):
Error:
The text was updated successfully, but these errors were encountered: