-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Parameter borrows should happen before receiver borrows #17365
Comments
I think this is likely a duplicate of an existing issue. |
I think #6393 is related but not quite the same. |
Isn’t this #6268? |
"receivers" was the word I was looking for earlier, thank you! #6268 isn't quite the same, that ticket is about mutable receivers, while here I'm using an immutable receiver as a parameter. Would love for #6268 to get fixed though :) Edit: on closer inspection, the first example in #6268 is in fact the same as this, but the bug title seems to be more general. |
…=Veykril internal: Expose snippet capability to diagnostic quickfixes Fixes rust-lang#16767
This works:
I would like to be able to write this instead:
But:
Lexically, the receivers appears before the parameters, but semantically it appears later, which is when I'd expect the borrow to happen.
The text was updated successfully, but these errors were encountered: