Skip to content

foreign function invalid error message #31481

Closed
@GuillaumeGomez

Description

@GuillaumeGomez

This code works:

extern "C" {
    fn foo(x: u8, ...);
}

While this one doesn't:

extern "C" fn foo(x: u8, ...); // error: only foreign functions are allowed to be variadic

I don't think this is the expected behavior.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-diagnosticsArea: Messages for errors, warnings, and lintsA-parserArea: The lexing & parsing of Rust source code to an ASTC-enhancementCategory: An issue proposing an enhancement or a PR with one.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions