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 with where clauses that themselves reference associated types #18436

Closed
nikomatsakis opened this issue Oct 29, 2014 · 1 comment
Closed

Comments

@nikomatsakis
Copy link
Contributor

Based on a read of the implementation, I believe situations like this are incorrectly handled:

trait Foo {
    type Out;
}

trait Bar<T: Foo> {
}

The problem is that Bar needs a synthetic parameter to play the role of T::Out, but the current code only adds synthetic parameters to things other than traits (since, in a trait, we add the parameters for the associated types defined within the trait itself). We also do not add synthetic parameters for bounds appearing on structs etc.

@nikomatsakis
Copy link
Contributor Author

I don't think this is really relevant to the current implementation.

lnicola pushed a commit to lnicola/rust that referenced this issue Nov 4, 2024
Do not render meta info when hovering usages
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

1 participant