Skip to content
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

ICE: trying to take the sizing type of A, an unsized type #17025

Closed
wanders opened this issue Sep 5, 2014 · 2 comments · Fixed by #18099
Closed

ICE: trying to take the sizing type of A, an unsized type #17025

wanders opened this issue Sep 5, 2014 · 2 comments · Fixed by #18099
Labels
A-DSTs Area: Dynamically-sized types (DSTs) E-needs-test Call for participation: An issue has been fixed and does not reproduce, but no test has been added. I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️

Comments

@wanders
Copy link

wanders commented Sep 5, 2014

Getting this ICE:
error: internal compiler error: trying to take the sizing type of A, an unsized type

when compiling this:

enum A {
    B(char),
    C([Box<A>]),
}

fn c(c:char) -> A {
    return B(c)
}

pub fn main() {
}

Heard on IRC that pinging @nick29581 may be good on this issue

@Valloric
Copy link
Contributor

Valloric commented Sep 6, 2014

Seems to be a duplicate of #16848.

@huonw huonw added I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ A-DSTs Area: Dynamically-sized types (DSTs) labels Sep 10, 2014
@mahkoh
Copy link
Contributor

mahkoh commented Oct 13, 2014

No longer valid.

@alexcrichton alexcrichton added the E-needs-test Call for participation: An issue has been fixed and does not reproduce, but no test has been added. label Oct 13, 2014
bors added a commit that referenced this issue Oct 18, 2014
Closes #9249.
Closes #13105.
Closes #13837.
Closes #13847.
Closes #15207.
Closes #15261.
Closes #16048. 
Closes #16098.
Closes #16256.
Closes #16562.
Closes #16596.
Closes #16709.
Closes #16747.
Closes #17025.
Closes #17121.
Closes #17450.
Closes #17636.
lnicola pushed a commit to lnicola/rust that referenced this issue Apr 24, 2024
internal: Use josh for subtree syncs
RalfJung pushed a commit to RalfJung/rust that referenced this issue Apr 27, 2024
internal: Use josh for subtree syncs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-DSTs Area: Dynamically-sized types (DSTs) E-needs-test Call for participation: An issue has been fixed and does not reproduce, but no test has been added. I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants