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
Closed

ICE pattern matching unit in function argument #7519

ghost opened this issue Jul 1, 2013 · 1 comment
Labels
E-needs-test Call for participation: An issue has been fixed and does not reproduce, but no test has been added.

Comments

@ghost
Copy link

ghost 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
Copy link
Member

sanxiyn 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 as completed in 4f92f45 Sep 17, 2013
flip1995 pushed a commit to flip1995/rust that referenced this issue Aug 12, 2021
Workaround rust-lang/rustfmt#4477 - relative paths in `path` attribute

See rust-lang/rustfmt#4477
changelog: None
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
E-needs-test Call for participation: An issue has been fixed and does not reproduce, but no test has been added.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant