We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3f7b112 commit a7f29b3Copy full SHA for a7f29b3
src/test/compile-fail/bad-for-loop.rs
@@ -1,4 +1,4 @@
1
fn main() {
2
- fn baz(_x: fn() -> int) {}
+ fn baz(_x: fn(y: int) -> int) {}
3
for baz |_e| { } //~ ERROR should return `bool`
4
}
0 commit comments