6 lines
143 B
Rust
Raw Normal View History

2012-06-18 17:42:09 -07:00
fn f(f: fn@(int) -> bool) -> bool { f(10) }
fn main() {
assert do f() { |i| i == 10 } == 10; //! ERROR: expected `bool` but found `int`
}