-
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
Ambiguous elided lifetime error claims non-elided lifetime is elided #29094
Comments
We should just remove the "elided" - the rules work (and always worked) for all lifetimes. |
E-easy/E-mentor. The code needs to be updated here to remove elided. A few tests will then fail, probably src/test/compile-fail/issue-26638.rs, src/test/compile-fail/issue-30255.rs, and src/test/compile-fail/lifetime-elision-return-type-requires-explicit-lifetime.rs which will need to be updated to remove the word elided as well. Let us know if you'd like to work on this, or if you have any questions; we'll be happy to help. |
I'd be happy to take a shot at this over the weekend if no one else is interested, doesn't look like too much of a brain teaser. :) |
Go ahead! Let us know if there's anything we can do to help you out.
|
Remove 'elided' from lifetime resolution error Removes 'elided' from lifetime resolution errors Removes 'elided' from relevant error messaging tests This PR resolves rust-lang#29094 r? @Mark-Simulacrum
Remove 'elided' from lifetime resolution error Removes 'elided' from lifetime resolution errors Removes 'elided' from relevant error messaging tests This PR resolves rust-lang#29094 r? @Mark-Simulacrum
Reopening per #42415 (comment). |
Triage: the error today:
It still does not suggest |
Suggest return lifetime when there's only one named lifetime Fix rust-lang#29094.
Suggest return lifetime when there's only one named lifetime Fix rust-lang#29094.
Suggest return lifetime when there's only one named lifetime Fix rust-lang#29094.
Suggest return lifetime when there's only one named lifetime Fix rust-lang#29094.
Suggest return lifetime when there's only one named lifetime Fix rust-lang#29094.
Suggest return lifetime when there's only one named lifetime Fix rust-lang#29094.
gives
Each time it refers to "
_arg
's 2 elided lifetimes", but in both cases only one of_arg
's lifetimes is elided.The text was updated successfully, but these errors were encountered: