Skip to content

Reference syntax for Closure type is incomplete #20668

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
jsgf opened this issue Jan 6, 2015 · 2 comments
Closed

Reference syntax for Closure type is incomplete #20668

jsgf opened this issue Jan 6, 2015 · 2 comments

Comments

@jsgf
Copy link
Contributor

jsgf commented Jan 6, 2015

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.

@frewsxcv
Copy link
Member

frewsxcv commented Jan 7, 2015

Relevant issues: #19841 #20667

@steveklabnik
Copy link
Member

Closing as a dup of #19841

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants