Skip to content

Where clauses that do not involve parameter types should be rejected #20019

@nikomatsakis

Description

@nikomatsakis

RFC 135 specifies that where clauses that involve no generic parameters, such as where int : Eq, are illegal. We should add a test that checks that a suitable error is reported. Note that the type parameter may appear outside the self type, however, so something like where int : Foo<Option<X>> should be fine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions