Closed
Description
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
Labels
No labels