Skip to content

Parse and accept type equality constraints in where clauses #20041

Open

Description

Implement the missing type equality constraint specified in RFC 135.

Examples

fn sum<I: Iterator>(_: I) -> i32
where
    I::Item == i32 // or `I::Item = i32`
{
    // ...    
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    A-lazy-normalizationArea: Lazy normalization (tracking issue: #60471)A-typesystemArea: The type systemC-tracking-issueCategory: A tracking issue for an RFC or an unstable feature.S-tracking-design-concernsStatus: There are blocking ❌ design concerns.S-tracking-unimplementedStatus: The feature has not been implemented.T-langRelevant to the language 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.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions