-
Notifications
You must be signed in to change notification settings - Fork 13.3k
ICE: failed to get layout for E
: the type E
has an unknown layout
#35988
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
E-easy
Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
E-needs-test
Call for participation: An issue has been fixed and does not reproduce, but no test has been added.
Comments
This is not supported though, why aren't you getting an error? cc @arielb1 @nikomatsakis |
Note that referencing the type also causes an ICE on stable: enum E {
V([Box<E>])
}
fn foo(_: &E) {}
fn main() {} This triggers without referencing the type since #34755 moved |
Yes, similar to #34571 |
This seems like a legitimate "staging" problem... not quite sure how to triage though. |
Fixed in 1.15.1, needs test.
|
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
Labels
E-easy
Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
E-needs-test
Call for participation: An issue has been fixed and does not reproduce, but no test has been added.
This is a regression: reproduces on beta and nightly, doesn't reproduce on stable.
The text was updated successfully, but these errors were encountered: