-
Notifications
You must be signed in to change notification settings - Fork 933
Closed
Labels
a-commentsbugPanic, non-idempotency, invalid code, etc.Panic, non-idempotency, invalid code, etc.good first issueIssues up for grabs, also good candidates for new rustfmt contributorsIssues up for grabs, also good candidates for new rustfmt contributorshacktoberfesthelp wanted
Milestone
Description
pub type Export /*: Bound */ = S1;
This is one where I think a comment is justified; today we do not enforce such bounds (i.e. the compiler does not check that the right-hand side of a type
definition actually conforms to such a bound), and the compiler actually errors if you try to include it (because we don't want people to mistakenly think that such bounds are enforced).
But the comment here serves a useful purpose (about the intent, that we intend for this type definition to conform to the bound).
Originally posted by @pnkfelix in #2781 (comment)
Metadata
Metadata
Assignees
Labels
a-commentsbugPanic, non-idempotency, invalid code, etc.Panic, non-idempotency, invalid code, etc.good first issueIssues up for grabs, also good candidates for new rustfmt contributorsIssues up for grabs, also good candidates for new rustfmt contributorshacktoberfesthelp wanted