Closed
Description
In an example like:
rust/src/test/ui/issue-40510-1.rs
Lines 14 to 20 in 59fa6bd
AST-borrowck accepts such code, but NLL will start rejecting it.
@nikomatsakis concluded in a comment back in April (#49824 (comment)) that similar code (or at least it looks similar to me) is in fact incorrect, and decided that NLL was correct in rejecting such cases.
This issue is just marking that this change in semantics has occurred, so that I can link to it from places like #52663
Known instances: