Closed asoffer closed 3 years ago
Changing this to an enhancement now that there is an error message (just not a great one).
What's the syntax for capturing a local variable?
No such syntax exists. I'd like a syntax for capturing but I think we first need a solution for lifetime tracking. Or at least start captures with by-value only. If you're interested, feel free to open an issue as a proposal for syntax and semantics.
This should produce an error but does not.