-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Nightly regression: lifetime error with autoderef #28854
Comments
triage: I-nominated Tagging as T-compiler, but may also be T-lang (not sure). This compiles ok on stable/beta and fails to compile on nightly. |
This and #28853 are the same issue. The extraneous address-of operation (to As one of the |
This problem is easily fixed by removing the extraneous @aturon: I think it is cases like this that led to the removal of |
Oh... I see, this is kind of awkward: the signature is asserting that This particular case is actually safe because |
|
triage: P-high |
Closing in favor of #28853 |
Testcase:
It looks rather similar to #28839, but I'm not sure whether it's the same thing. Originally reported by @jonas-schievink (#28853 (comment)) .
The text was updated successfully, but these errors were encountered: