Not desugaring to HRTB for closure argument #73433
Labels
A-closures
Area: Closures (`|…| { … }`)
A-lifetimes
Area: Lifetimes / regions
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
My understanding was that
FnMut(&T)
desugars tofor<'a> FnMut(&'a T)
. In this instance, it is seemingly not doing so. If you comment out line 44 then this compiles. Why is themap
function triggering the incorrect (?) desugaring, and how can I fix it?(Playground)
Errors:
Possibly related: #70263
The text was updated successfully, but these errors were encountered: