Created
May 23, 2013 22:11
-
-
Save alexcrichton/5639877 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct A; | |
trait B<T> { fn foo(a: &T); } | |
impl B<int> for A { | |
fn foo(_: &int) {} | |
} | |
struct Something; | |
impl<T, N: B<T>> Something { | |
fn test(t: &T) { | |
B::foo(t); | |
} | |
} | |
fn main() {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
foo.rs:13:4: 13:10 error: cannot determine a type for this bounded type parameter: unconstrained type | |
foo.rs:13 B::foo(t); | |
^~~~~~ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment