Skip to content

bogus parameter-count error following error in parameter list #34264

Closed
@durka

Description

@durka
fn foo(Option<i32>) {}

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

The first error is about the missing argument name in foo's parameter list, but there's another one on the call saying that the function doesn't take any parameters. I guess a dummy item was created to prevent cascading resolve errors, but it seems to create another kind of cascading error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-diagnosticsArea: Messages for errors, warnings, and lints

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions