Skip to content

Instantly share code, notes, and snippets.

@alexcrichton
Created May 23, 2013 22:11
Show Gist options
  • Save alexcrichton/5639877 to your computer and use it in GitHub Desktop.
Save alexcrichton/5639877 to your computer and use it in GitHub Desktop.
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() {}
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