-
-
Notifications
You must be signed in to change notification settings - Fork 15k
bounds on trait impls are used in implied bounds #109628
Copy link
Copy link
Open
Labels
A-implied-boundsArea: Implied bounds / inferred outlives-boundsArea: Implied bounds / inferred outlives-boundsC-bugCategory: This is a bug.Category: This is a bug.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-typesRelevant to the types team, which will review and decide on the PR/issue.Relevant to the types team, which will review and decide on the PR/issue.
Metadata
Metadata
Assignees
Labels
A-implied-boundsArea: Implied bounds / inferred outlives-boundsArea: Implied bounds / inferred outlives-boundsC-bugCategory: This is a bug.Category: This is a bug.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-typesRelevant to the types team, which will review and decide on the PR/issue.Relevant to the types team, which will review and decide on the PR/issue.
Type
Fields
Give feedbackNo fields configured for issues without a type.
The following compiles although it shouldn't:
fn_testshould fail with an error requiring an explicitT: 'staticbound.This is a compiler bug for the following reasons:
Box<T>: Trait) includes only the where-clauses of the trait itself, not the trait impl.U::Assoc: Sizedis also a breaking change.U::Assoc: Sizedmake any meaningful difference?