rust/src/test/compile-fail/liveness-closure-require-ret.rs
2012-07-01 19:19:32 -07:00

5 lines
223 B
Rust

// 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 main() { log(error, force(|| {})); }