Skip to content

ICE pattern matching unit in function argument #7519

Closed
@ghost

Description

// 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)`

Metadata

Metadata

Assignees

No one assigned

    Labels

    E-needs-testCall for participation: An issue has been fixed and does not reproduce, but no test has been added.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions