Skip to content

Allow trait functions to be generic #740

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

Closed
cburgdorf opened this issue Jun 16, 2022 · 1 comment
Closed

Allow trait functions to be generic #740

cburgdorf opened this issue Jun 16, 2022 · 1 comment
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
@sbillig
Copy link
Collaborator

sbillig commented Jan 18, 2025

Fixed in #840

@sbillig sbillig closed this as completed Jan 18, 2025
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

2 participants