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

Allow trait functions to be generic #740

Open
cburgdorf opened this issue Jun 16, 2022 · 0 comments
Open

Allow trait functions to be generic #740

cburgdorf opened this issue Jun 16, 2022 · 0 comments
Labels
comp: analyzer Everything that involves the analyzer pass comp: mir type: feature

Comments

@cburgdorf
Copy link
Collaborator

cburgdorf commented Jun 16, 2022

What is wrong?

Trait support was added in #710 but it doesn't yet allow trait functions to be generic. E.g. we can not yet add such a trait:

trait PartialEq {
  fn eq<T>(self, other: T) -> bool;
}
@cburgdorf cburgdorf added type: feature comp: analyzer Everything that involves the analyzer pass comp: mir labels Jun 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp: analyzer Everything that involves the analyzer pass comp: mir type: feature
Projects
None yet
Development

No branches or pull requests

1 participant