rust/src/test/compile-fail/bad-for-loop.rs

5 lines
96 B
Rust

fn main() {
fn baz(_x: fn() -> int) {}
for baz {|_e| } //! ERROR should return `bool`
}