-
Notifications
You must be signed in to change notification settings - Fork 13k
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
Const generics: internal compiler error: collection encountered polymorphic constant #62187
Comments
Same is valid for traits (abstract incomplete example)
|
Also encountered this issue here. |
Does anyone have a sense of what would be involved in fixing this? |
Cannot see the ICE with the above example on latest nightly (playground) |
Should we add a regression test for this (and #62536)? |
I think we'll worry more about tests as we head towards more effective const generics; right now I think it's not really in a state where tests would be super helpful. cc @varkor though |
Although we know a lot isn't working with const generics, I'd really like to expand the test suite, so it's more comprehensive as we move towards stabilisation. Let's try to add regression tests where possible. I'll add one for this issue and #62536. |
…=nikomatsakis Add some regression tests - Add a test for rust-lang#62187. - Clean up the directory structure in `src/test/ui/const-generics` - Closes rust-lang#64792. - Closes rust-lang#57399. - Closes rust-lang#57271.
…=nikomatsakis Add some regression tests - Add a test for rust-lang#62187. - Clean up the directory structure in `src/test/ui/const-generics` - Closes rust-lang#64792. - Closes rust-lang#57399. - Closes rust-lang#57271.
…=nikomatsakis Add some regression tests - Add a test for rust-lang#62187. - Clean up the directory structure in `src/test/ui/const-generics` - Closes rust-lang#64792. - Closes rust-lang#57399. - Closes rust-lang#57271.
…=nikomatsakis Add some regression tests - Add a test for rust-lang#62187. - Clean up the directory structure in `src/test/ui/const-generics` - Closes rust-lang#64792. - Closes rust-lang#57399. - Closes rust-lang#57271.
Source:
Panic:
Meta
The text was updated successfully, but these errors were encountered: