-
Notifications
You must be signed in to change notification settings - Fork 13.2k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
core::hint::must_use
returns a temporary
#124493
Comments
@rustbot label +T-compiler +A-lifetimes +requires-nightly -needs-triage |
Is this likely to be fixable with A magic
|
Yup you are right, I guess we can't actually do anything with the function signature so I will close this. Agreed that it may not be overly useful in its current form. |
Per @RalfJung in #124484 (comment), this may indeed be fixable by using |
Originally noticed in #124478 (comment), @GKFX identified it as a problem in
must_use
in #124478 (comment)I tried this code:
I expected to see this happen: no error, the value is a constant
Instead, this happened:
Meta
rustc 1.79 nightly 2024-04-27
The text was updated successfully, but these errors were encountered: