-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
"unable to find implementation of trait" with a combination of a generic trait & a static method #4306
Labels
A-trait-system
Area: Trait system
Comments
ghost
assigned catamorphism
Jan 24, 2013
@catamorphism (nag nag) |
reproduced on 2013-03-25 |
non-critical for 0.6, de-milestoning |
Still reproducible. Here's the updated example: struct Foo<T>(T);
impl<T> Foo<T> {
fn foo<U>(theta: U) -> Foo<T> {
Bar::bar(theta)
}
}
impl<T> Bar<T> for Foo<T> {
fn bar<U>(_theta: U) -> Foo<T> { fail!(~"") }
}
trait Bar<T> {
fn bar<U>(theta: U) -> Self;
}
fn main() {} I'm not sure how important this is. Nominating for production ready. |
accepted for production-ready milestone |
see also #5527, this is somewhat of a sub-bug or case to define. |
Still reproducible. |
OK, this seems fixed. |
@msullivan is there a test case? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When I remove the type parameters on any of the items it compiles.
The text was updated successfully, but these errors were encountered: