mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-13 09:05:00 +00:00
unxfail-test and try to test for similar conditions as before
fixes #2772
This commit is contained in:
parent
7bbdf296e0
commit
9a77a17e3b
@ -1,4 +1,2 @@
|
|||||||
// xfail-test After the closure syntax change this started failing with the wrong error message
|
|
||||||
// error-pattern: not all control paths return
|
|
||||||
fn force(f: fn() -> int) -> int { f() }
|
fn force(f: fn() -> int) -> int { f() }
|
||||||
fn main() { log(error, force(|| {})); }
|
fn main() { log(debug, force(|| {})); } //~ ERROR mismatched types
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
// xfail-test After the closure syntax change this started failing with the wrong error message
|
fn main() {
|
||||||
fn main(_s: ~[str]) {
|
|
||||||
let a: ~[int] = ~[];
|
let a: ~[int] = ~[];
|
||||||
do vec::each(a) |_x| { //~ ERROR not all control paths return a value
|
vec::each(a, fn@(_x: int) -> bool { //~ ERROR not all control paths return a value
|
||||||
}
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user