Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
matthewjasper opened this issue Mar 25, 2018 · 0 comments · Fixed by #49368
Closed

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

matthewjasper opened this issue Mar 25, 2018 · 0 comments · Fixed by #49368
Labels
A-associated-items Area: Associated items (types, constants & functions) A-GATs Area: Generic associated types (GATs) A-stability Area: `#[stable]`, `#[unstable]` etc. F-generic_associated_types `#![feature(generic_associated_types)]` a.k.a. GATs

Comments

@matthewjasper
Copy link
Contributor

matthewjasper commented Mar 25, 2018

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() {}
@matthewjasper matthewjasper added A-associated-items Area: Associated items (types, constants & functions) A-stability Area: `#[stable]`, `#[unstable]` etc. labels Mar 25, 2018
bors added a commit that referenced this issue Apr 2, 2018
Feature gate where clauses on associated types

Fixes #49365. Requires crater: these have been usable since 1.24.
bors added a commit that referenced this issue Apr 23, 2018
…omatsakis

Feature gate where clauses on associated types

Fixes #49365. Requires crater: these have been usable since 1.24.
@Centril Centril added the F-generic_associated_types `#![feature(generic_associated_types)]` a.k.a. GATs label Aug 5, 2019
@fmease fmease added the A-GATs Area: Generic associated types (GATs) label Nov 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-associated-items Area: Associated items (types, constants & functions) A-GATs Area: Generic associated types (GATs) A-stability Area: `#[stable]`, `#[unstable]` etc. F-generic_associated_types `#![feature(generic_associated_types)]` a.k.a. GATs
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants