Why is it no possible to return a reference from a closure?
I tried to use a closure to trivially return a reference it received as an argument, but the compiler chokes. Using a function that does the same in place of the closure works as expected.
Here's a link to the playground
And a even smaller version
What the borrow checker rules say about this?