-
Notifications
You must be signed in to change notification settings - Fork 13.3k
unsized enums don't work #24957
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-type-system
Area: Type system
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
Comments
hmm, that looks like an unsized type (since some of the variants carry e.g. |
(in other words, I bet this is a failure in the well-formedness check.) |
(updated description with a simpler test case.) |
Possibly related to #19182. |
arielb1
added a commit
to arielb1/rust
that referenced
this issue
May 22, 2015
arielb1
added a commit
to arielb1/rust
that referenced
this issue
May 23, 2015
cc #25388 |
arielb1
pushed a commit
to arielb1/rust
that referenced
this issue
Jul 9, 2015
Fixes rust-lang#21111. Fixes rust-lang#24707. Fixes rust-lang#24957. Fixes rust-lang#25388. Fixes rust-lang#25637. Fixes rust-lang#26301.
Closed
Seems like this is a duplicate of #16812. |
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
Labels
A-type-system
Area: Type system
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
rustc
is not checking that all types that are put into a sized-context are in fact sized.Consider for example:
This yields an ICE:
Original bug report follows
I'm on MacOS X Mavericks.
Here's the source file that causes the problem (I'm a rust newbie):
And here's the output of the compiler:
The text was updated successfully, but these errors were encountered: