-
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
ICE in typeck on existential return type in trait #58887
Comments
probably related to #58817 |
cc @alexreg might not be impl-trait-in-let-binding related after all |
@oli-obk Ah, good to know. Are you going to tackle this? I'm not sure if the RFC for |
Existential types for associated types in trait impls are already supported and suggested to exist by the RFC. The issue here is probably that I never considered generics in that light. Or am I misunderstanding what you mean by "this syntax"? |
Ah, I was probably thinking of the case of inherent impls... glad these are supported. |
The ICE doesn't appear on the latest nightly via the above link. |
Good spot. Not sure what PR fixed this, but I suspect it can be closed now... @Centril? |
Before closing this, we can add the tests for this. |
@JohnTitor It depends if there is already an equivalent (minimal) example. If there is, no need... if not, then yes (and let's minimise this one). |
It's sorta harder to minimize something that no longer ICEs... |
@Centril Fair point. I mean, we could use an old nightly, but that's a pain. |
Add tests for issue-58887 Closes rust-lang#58887
Add tests for issue-58887 Closes rust-lang#58887
https://play.rust-lang.org/?version=nightly&mode=debug&edition=2018&gist=6988f4162312bdf3adc80228efabb896
The text was updated successfully, but these errors were encountered: