Skip to content

Trailing commas are not allowed in closure types #19414

@ftxqxd

Description

@ftxqxd

The following code:

let x: |int,|;

does not parse. It should be noted that this already works with closure expressions (e.g., let x = |x: int,| 1i;).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions