Skip to content

Where clauses on associated types aren't feature gated #49365

Closed
@matthewjasper

Description

@matthewjasper

where clauses on associated types don't work yet so should be feature gated, presumably with feature(generic_associated_types). cc #44265. Happens on versions >= 1.24

trait A {
    type X where Self: Copy; // Does nothing!
}
fn main() {}

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-GATsArea: Generic associated types (GATs)A-associated-itemsArea: Associated items (types, constants & functions)A-stabilityArea: `#[stable]`, `#[unstable]` etc.F-generic_associated_types`#![feature(generic_associated_types)]` a.k.a. GATs

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions