rust/src/test/compile-fail/liveness-closure-require-ret.rs
2012-08-09 11:00:44 -07:00

3 lines
107 B
Rust

fn force(f: fn() -> int) -> int { f() }
fn main() { log(debug, force(|| {})); } //~ ERROR mismatched types