run-pass/autobind seems to work, so un-xfail it

This commit is contained in:
Tim Chevalier 2012-06-14 15:14:45 -07:00
parent 0a6ef35c8c
commit 663000ce35

View file

@ -1,8 +1,4 @@
// FIXME: Autobind doesn't work for bare functions currently
// because it would have to convert them to shared closures
// xfail-test
fn f<T>(x: [T]) -> T { ret x[0]; }
fn f<T: copy>(x: [T]) -> T { ret x[0]; }
fn g(act: fn([int]) -> int) -> int { ret act([1, 2, 3]); }