Fix expr-alt-generic-box2.rs and un-XFAIL

This commit is contained in:
Brian Anderson 2011-05-01 12:21:08 -04:00
parent 831b0a7501
commit e75edd5e43

View File

@ -1,5 +1,4 @@
// xfail-boot
// xfail-stage0
// -*- rust -*-
type compare[T] = fn(&T t1, &T t2) -> bool;
@ -14,7 +13,7 @@ fn test_generic[T](&T expected, &compare[T] eq) {
}
fn test_vec() {
fn compare_vec(vec[int] v1, vec[int] v2) -> bool {
fn compare_vec(&vec[int] v1, &vec[int] v2) -> bool {
ret v1 == v2;
}
auto eq = bind compare_vec(_, _);