Occasional "cannot move out" error (E0505) when adding a match guard #65236
Labels
A-borrow-checker
Area: The borrow checker
A-NLL
Area: Non-lexical lifetimes (NLL)
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
NLL-polonius
Issues related for using Polonius in the borrow checker
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Given the following snippet:
This compiles just fine. Now uncomment the if true match guard and compile fails:
Why does the insignificant match guard affect the borrowck?
Tested both on stable 1.38.0 and 1.40.0-nightly (032a53a 2019-10-03).
The text was updated successfully, but these errors were encountered: