-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Assigning a linearly typed value to _
does trigger use of moved value
errors on subsequent usages
#15151
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
Comments
Related to #10488? |
Yeah this might be a duplicate. |
@pnkfelix So to clarify, why is this not the same as calling |
I would at least expect |
@bjz There is a pretty thorough discussion on #10488 about the design space here. There is an explicit note about why it makes some sense to not treat |
One quick way to summarize the motivations here is to point out that under the old system: |
Ok, that makes sense! Thanks! This might need some documentation in an FAQ or something. Closing. |
@pnkfelix What is the semantics of |
@bjz In the semantics that I believe was settled upon in #10488, (I thought we were going to try to put in a lint to detect |
… r=lnicola Update dependencies for editor/code This updates dependencies except ``@types/node`.`
This code fails to compile:
Error:
Where as this compiles with no error:
Output:
The text was updated successfully, but these errors were encountered: