NLL does not allow closure to return a reference that it (maybe) should be able to return #51354
Labels
A-NLL
Area: Non-lexical lifetimes (NLL)
NLL-complete
Working towards the "valid code works" goal
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Milestone
With nll turned on, the following code does not compile:
https://play.rust-lang.org/?gist=366e4fde473d02f294a527a462c9e7da&version=nightly&mode=debug
Error message:
When not using the nll feature, it compiles.
The text was updated successfully, but these errors were encountered: