-
Notifications
You must be signed in to change notification settings - Fork 12.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
incorrect borrow conflict with temporary borrow #7211
Comments
visiting for triage. nominating production ready. |
Accepted for production-ready |
It's hard to tell without more of the surrounding types, but isn't this Issue #6393? @metajack originally reported that "If you borrow immutably in an |
Assigning P-low, not a 1.0 blocker. (Also, we should revise the test case in the description to match something that we actually expect to compile. And we should test whether it still reproduces now.) |
Lots of time has passed since this was opened, as well as lots of code changing in the meantime (including the borrow checker!). The code snippet isn't exactly standalone, so I'm going to close this out of age, but it can certainly be reopened if it can be reproduced. |
This happens with the expression done in a block by itself with the
bool
result stored in a variable too. It's not related to it being in theif
statement's conditional.I'm finding it hard to reproduce a simple example, I'll get one here when I have time.
The text was updated successfully, but these errors were encountered: