rust/src/test/compile-fail/block-require-return.rs
Marijn Haverbeke fc6b7c8b38 Reformat for new mode syntax, step 1
Long lines were fixed in a very crude way, as I'll be following up
with another reformat in a bit.
2011-09-12 12:04:14 +02:00

4 lines
126 B
Rust

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