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

Traits associated items are rejected in super-trait bounds #18996

Closed
huonw opened this issue Nov 16, 2014 · 3 comments
Closed

Traits associated items are rejected in super-trait bounds #18996

huonw opened this issue Nov 16, 2014 · 3 comments

Comments

@huonw
Copy link
Member

huonw commented Nov 16, 2014

#![feature(associated_types)]

trait Wub {
    type Zoop;
}

trait Flim: Wub {}

fn main() {}
<anon>:7:13: 7:16 error: associated types may not be referenced here
<anon>:7 trait Flim: Wub {}
                     ^~~
@huonw
Copy link
Member Author

huonw commented Nov 16, 2014

@aturon and I suspect there may be some overlap with/duplication of #18768 but we're not familiar enough with the jargon/implementation details to be sure.

@aldanor
Copy link

aldanor commented Jan 16, 2015

This now compiles on nightly, should probably be closed.

@alexcrichton
Copy link
Member

Thanks @aldanor!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants