-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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 when combining GATs and HRTBs #76826
Comments
Have you tried it with the latest nightly? I can't get it to ICE with |
@fanninpm I'll give it a go. I'll be very happy if it's fixed, it's been holding up an experimental API I'm working on. Edit: This still triggers an ICE (the playground example needs the final line commented out. I'll adjust the link) |
Uncommenting the (By the way, your example on this page has an extra semicolon in the previous line that's causing a syntax error. The playground link is correct as is.) |
Should be fixed since #79554 |
|
Make GATs no longer an incomplete feature Blocked on ~rust-lang#84622~, ~rust-lang#82272~, ~rust-lang#76826~ r? `@nikomatsakis`
The following code triggers an ICE.
Code
Playground version
This example can no doubt be minimised further, but it should be obvious what I'm attempting to do and why. This would be, I assume, a fairly common use-case for GATs and are likely to be essential if GATs are ever to be integrated into
Iterator
.Meta
rustc --version --verbose
:Error output
Backtrace
Removing the final line (
.for_each(|slice| println!("{:?}", slice))
) prevents the ICE, implying that this is a codegen issue (as corroborated by the stack trace).The text was updated successfully, but these errors were encountered: