-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
unsized enums don't work #24957
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. |
cc #25388 |
Fixes rust-lang#21111. Fixes rust-lang#24707. Fixes rust-lang#24957. Fixes rust-lang#25388. Fixes rust-lang#25637. Fixes rust-lang#26301.
Seems like this is a duplicate of #16812. |
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: