Fix expr-alt-generic-box2.rs and un-XFAIL
This commit is contained in:
parent
831b0a7501
commit
e75edd5e43
@ -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(_, _);
|
||||
|
Loading…
x
Reference in New Issue
Block a user