Unboxed closures: cannot borrow data mutably in aliasable location #16668
Labels
A-closures
Area: Closures (`|…| { … }`)
E-needs-test
Call for participation: An issue has been fixed and does not reproduce, but no test has been added.
This code does not work very unexpectedly:
The error:
When I expand this manually, I can get it to work:
Though for some reason completely opaque to me I need to put
'static
bound onO
parameter, otherwise there is a compilation error:The original problem came from here.
The text was updated successfully, but these errors were encountered: