Skip to content

Reference syntax for Closure type is incomplete #20668

Closed
@jsgf

Description

@jsgf

The Reference says the syntax for a closure type is:

closure_type := [ 'unsafe' ] [ '<' lifetime-list '>' ] '|' arg-list '|'
            [ ':' bound-list ] [ '->' type ]
arg-list := ident ':' type | ident ':' type ',' arg-list
...

arg-list seems incomplete as it doesn't cover |: ...| |&: ...| |&mut: ...|

The Reference only incidentally mentions |&: ...| and doesn't touch any of the other forms, and doesn't describe their semantics.

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