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

Explicitly bind trait methods #495

Open
Nadrieril opened this issue Dec 11, 2024 · 0 comments
Open

Explicitly bind trait methods #495

Nadrieril opened this issue Dec 11, 2024 · 0 comments
Assignees

Comments

@Nadrieril
Copy link
Member

We should make explicit the mapping between trait parameters and method parameters, like I explained here:

trait Trait<T> {
    fn method<U>();
}
impl<T> Trait<Foo<T>> for Bar<T> {
    fn method<U>() {}
}
// represented as:
fn impl#0::method<T, U>() {}
impl<T> Trait<Foo<T>> for Bar<T> {
    fn method = for<U> impl#0::method<T, U>
}

This will unlock #180 and #127.

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