-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
Can create trait objects with self-containing bounds #38604
Copy link
Copy link
Closed
Labels
I-needs-decisionIssue: In need of a decision.Issue: In need of a decision.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.T-langRelevant to the language teamRelevant to the language team
Metadata
Metadata
Assignees
Labels
I-needs-decisionIssue: In need of a decision.Issue: In need of a decision.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.T-langRelevant to the language teamRelevant to the language team
Type
Fields
Give feedbackNo fields configured for issues without a type.
Meta
STR
Expected Result
Box<Foo>is not well-formed, becauseu32: Q<Foo>does not hold.Actual Result
Code compiles.
This does not seem to cause any trouble, but is a potential future-compatibility hazard if we start elaborating these bounds.