We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
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: ...|
arg-list
|: ...|
|&: ...|
|&mut: ...|
The Reference only incidentally mentions |&: ...| and doesn't touch any of the other forms, and doesn't describe their semantics.
The text was updated successfully, but these errors were encountered:
Relevant issues: #19841 #20667
Sorry, something went wrong.
Closing as a dup of #19841
No branches or pull requests
The Reference says the syntax for a closure type is:
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.The text was updated successfully, but these errors were encountered: