Skip to content

impl Trait example with argument type #1442

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
piegamesde opened this issue Jun 5, 2021 · 0 comments · Fixed by #1468
Closed

impl Trait example with argument type #1442

piegamesde opened this issue Jun 5, 2021 · 0 comments · Fixed by #1468

Comments

@piegamesde
Copy link

The impl Trait page only contains example where that pattern was used as a return type of a method. It would be cool if there also was at least one example that used it as argument type. Ideally, there'd be again two methods, one showing the pattern and one showing what it de-sugars into.

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

Successfully merging a pull request may close this issue.

1 participant