Skip to content

Instantly share code, notes, and snippets.

@bstrie
Created April 7, 2014 20:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bstrie/10047102 to your computer and use it in GitHub Desktop.
Save bstrie/10047102 to your computer and use it in GitHub Desktop.
fn foo<T, U>(x: T) -> U {
x // error: mismatched types: expected `U` but found `T` (expected type parameter but found type parameter)
}
fn main() {
foo(1u);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment