summary refs log tree commit diff
path: root/src/test/compile-fail/bad-for-loop.rs
blob: 65a7ee4211c6af239cad824ca447824682c3674f (plain)
1
2
3
4
fn main() {
    fn baz(_x: fn() -> int) {}
    for baz |_e| { } //~ ERROR should return `bool`
}