Skip to content

Instantly share code, notes, and snippets.

@eholk
Created July 10, 2012 00:36
Show Gist options
  • Select an option

  • Save eholk/3080160 to your computer and use it in GitHub Desktop.

Select an option

Save eholk/3080160 to your computer and use it in GitHub Desktop.
fn foo<T>(x: T) {
fn bar(x: T) {
log(error, x);
}
bar(x);
}
fn main() {
foo(5);
}
=======
./test.rs:2:14: 2:15 error: attempt to use a type argument out of scope
./test.rs:2 fn bar(x: T) {
^
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment