Skip to content
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

closures/exercise.rs: drop trait bounds from struct definition #2649

Merged
merged 1 commit into from
Feb 20, 2025

Conversation

fw-immunant
Copy link
Collaborator

This is more idiomatic than what we had before.

We keep the trait bounds for the inherent impl, because the new method can use them to guide inference of unannotated closure arguments.

This is more idiomatic than what we had before.

We keep the trait bounds for the inherent impl, because the new method can use them to guide inference of unannotated closure arguments.
@fw-immunant fw-immunant force-pushed the fw/closure-exercise-where branch from 3f3ab42 to b1a8db2 Compare February 20, 2025 21:19
@fw-immunant fw-immunant merged commit 63cc474 into main Feb 20, 2025
37 checks passed
@fw-immunant fw-immunant deleted the fw/closure-exercise-where branch February 20, 2025 21:51
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 this pull request may close these issues.

2 participants