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

trait bounds grammar: make ? and for<> mutually exclusive #1650

Merged
merged 1 commit into from
Oct 12, 2024

Conversation

lukas-code
Copy link
Member

After rust-lang/rust#127054, the T: ?Trait and T: for<...> Trait syntax is mutually exclusive, and this code no longer compiles:

fn foo<T: ?for<> Sized>() {}

Update the reference to reflect that.

before after

r? @compiler-errors

Copy link
Contributor

@ehuss ehuss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@ehuss ehuss added this pull request to the merge queue Oct 12, 2024
Merged via the queue into rust-lang:master with commit 81477c4 Oct 12, 2024
4 checks passed
@lukas-code lukas-code deleted the ❓for<> branch October 12, 2024 14:52
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.

3 participants