-
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
Compiler panic when deriving Debug for an enum #36670
Labels
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
Comments
rt-tondilt
changed the title
Compiler panic when deriving Display for an enum
Compiler panic when deriving Debug for an enum
Sep 23, 2016
sfackler
added
the
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
label
Sep 23, 2016
Any unsized type such as
|
Duplicate of #16812. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Compiler panics with the following code:
Note that the enum has to contain a
str
. Adding more enum variants does not change the result.I am only a foreign highschool student, so I tried my best to describe the bug. I also tried it using nightly compiler on the Rust playground and the results were the same. I hope that the playground expects the possibility of a compiler error and does not do anything bad.
Meta
rustc --version --verbose
:The backtrace does not seem to be useful on Windows release builds. It only shows the following output and I don't know how to make it better.
edit: I made a mistake in the title. As I said I derive
Debug
and notDisplay
.The text was updated successfully, but these errors were encountered: