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 with closure in constant #27268

Closed
eefriedman opened this issue Jul 24, 2015 · 2 comments
Closed

ICE with closure in constant #27268

eefriedman opened this issue Jul 24, 2015 · 2 comments
Labels
I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️

Comments

@eefriedman
Copy link
Contributor

fn main() {
    const C: &'static Fn() = &||{};
}
error: internal compiler error: no type for node 15: expr { } (id=15) in fcx
note: the compiler unexpectedly panicked. this is a bug.
eefriedman added a commit to eefriedman/rust that referenced this issue Jul 25, 2015
@steveklabnik steveklabnik added the I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ label Jul 29, 2015
@emoon
Copy link
Contributor

emoon commented Oct 23, 2015

Doesn't seem to ICE as of rustc 1.4.0-beta.3 (20eba40 2015-10-16)

@eefriedman
Copy link
Contributor Author

Yes, it's fixed, and there's a testcase in the tree; I just forgot to close it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
Projects
None yet
Development

No branches or pull requests

3 participants