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 pattern matching unit in function argument #7519

Closed
ghost opened this issue Jul 1, 2013 · 1 comment

Comments

@ghost
Copy link

commented Jul 1, 2013

// main.rs
fn foo(():()) { }

fn main() {
    foo(());
}

output:

$ rustc main.rs
error: internal compiler error: node_id_to_type: no type for node `expr () (id=11)`
@sanxiyn

This comment has been minimized.

Copy link
Member

commented Sep 16, 2013

This seems to be fixed now. Tagging needstest.

huonw added a commit to huonw/rust that referenced this issue Sep 16, 2013
bors added a commit that referenced this issue Sep 16, 2013
bors added a commit that referenced this issue Sep 17, 2013

@huonw huonw closed this in 4f92f45 Sep 17, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.