rust/src/test/compile-fail/liveness-closure-require-ret.rs

3 lines
107 B
Rust
Raw Normal View History

2012-01-23 16:59:00 -06:00
fn force(f: fn() -> int) -> int { f() }
fn main() { log(debug, force(|| {})); } //~ ERROR mismatched types