-
Notifications
You must be signed in to change notification settings - Fork 13.3k
ICE (const generics) with const generics in trait #62504
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Labels
A-const-generics
Area: const generics (parameters and arguments)
C-bug
Category: This is a bug.
E-needs-test
Call for participation: An issue has been fixed and does not reproduce, but no test has been added.
F-const_generics
`#![feature(const_generics)]`
glacier
ICE tracked in rust-lang/glacier.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
requires-nightly
This issue requires a nightly compiler in some way.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Comments
cc @davidtwco |
I think this is another instance of #43408. However, we can leave this issue open to remember to add a test case when it's fixed. |
The original issue no longer ICEs and instead errors with:
which is essentially correct. However, providing the type annotations produces a new ICE:
|
ICEStack trace
|
Now ICE no longer occurs. I think it's fixed by #69859. |
Centril
added a commit
to Centril/rust
that referenced
this issue
Mar 13, 2020
Add more regression tests Closes rust-lang#58490, closes rust-lang#60390, closes rust-lang#62504, closes rust-lang#67739, closes rust-lang#69092 r? @Centril
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
Labels
A-const-generics
Area: const generics (parameters and arguments)
C-bug
Category: This is a bug.
E-needs-test
Call for participation: An issue has been fixed and does not reproduce, but no test has been added.
F-const_generics
`#![feature(const_generics)]`
glacier
ICE tracked in rust-lang/glacier.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
requires-nightly
This issue requires a nightly compiler in some way.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
When executed in the playground:
Compiler output
EDIT: Here's the updated playground link and the new stack trace as of Jan 7, 2020:
Compiler output
The text was updated successfully, but these errors were encountered: