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

Implement generics on impl blocks #638

Closed
jfecher opened this issue Jan 13, 2023 · 0 comments · Fixed by #798
Closed

Implement generics on impl blocks #638

jfecher opened this issue Jan 13, 2023 · 0 comments · Fixed by #798
Labels
enhancement New feature or request

Comments

@jfecher
Copy link
Contributor

jfecher commented Jan 13, 2023

Problem

Impl blocks do not currently support generics

Solution

Generics should be added to impl blocks such that the following is valid:

struct S<T, U> { ... }

// Support quantifying over all A, and over a single Field for U.
impl<A> S<A, Field> { ... }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants