rust/src/test/compile-fail/block-require-return.rs
2012-01-23 19:06:33 -08:00

4 lines
127 B
Rust

// error-pattern: not all control paths return
fn force(f: fn() -> int) -> int { f() }
fn main() { log(error, force({|| })); }