Skip to content

Conversation

@dtolnay
Copy link
Owner

@dtolnay dtolnay commented Jan 6, 2021

Rustc parses all of the following. (playground)

trait Trait where {}
trait Trait: where {}
trait Trait: Sized where {}
trait Trait: Sized + where {}

Syn was failing to parse if there wasn't at least one supertrait after the :.

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