Skip to content

Commit 663000c

Browse files
committed
run-pass/autobind seems to work, so un-xfail it
1 parent 0a6ef35 commit 663000c

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/test/run-pass/autobind.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
// FIXME: Autobind doesn't work for bare functions currently
2-
// because it would have to convert them to shared closures
3-
// xfail-test
4-
5-
fn f<T>(x: [T]) -> T { ret x[0]; }
1+
fn f<T: copy>(x: [T]) -> T { ret x[0]; }
62

73
fn g(act: fn([int]) -> int) -> int { ret act([1, 2, 3]); }
84

0 commit comments

Comments
 (0)