Skip to content

Commit 9a77a17

Browse files
committed
unxfail-test and try to test for similar conditions as before
fixes #2772
1 parent 7bbdf29 commit 9a77a17

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
1-
// xfail-test After the closure syntax change this started failing with the wrong error message
2-
// error-pattern: not all control paths return
31
fn force(f: fn() -> int) -> int { f() }
4-
fn main() { log(error, force(|| {})); }
2+
fn main() { log(debug, force(|| {})); } //~ ERROR mismatched types
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
// xfail-test After the closure syntax change this started failing with the wrong error message
2-
fn main(_s: ~[str]) {
1+
fn main() {
32
let a: ~[int] = ~[];
4-
do vec::each(a) |_x| { //~ ERROR not all control paths return a value
5-
}
3+
vec::each(a, fn@(_x: int) -> bool { //~ ERROR not all control paths return a value
4+
});
65
}

0 commit comments

Comments
 (0)