Skip to content

Add a without_plus parser for TypeImplTrait #1080

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

Merged
merged 1 commit into from
Oct 6, 2021
Merged

Add a without_plus parser for TypeImplTrait #1080

merged 1 commit into from
Oct 6, 2021

Conversation

dtolnay
Copy link
Owner

@dtolnay dtolnay commented Oct 6, 2021

Matching the APIs already provided on Type and TypeTraitObject.

Impl trait containing + is not allowed in all syntactic positions. For example fn f() -> impl Copy + 'static {} is legal syntax but fn f() -> &'static impl Copy + 'static {} is not.

Verified

This commit was signed with the committer’s verified signature.
dtolnay David Tolnay
@dtolnay dtolnay merged commit 5da8132 into master Oct 6, 2021
@dtolnay dtolnay deleted the withoutplus branch October 6, 2021 01:17
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.

None yet

1 participant