2012-08-30 19:05:54 -07:00

14 lines
358 B
Rust

// xfail-fast
// xfail-test
// This is xfail'd due to bad typecheck error messages. (There is a spurious
// "expected `bool` but but found `int`" message.)
fn f(f: fn@(int) -> bool) -> bool { f(10i) }
fn main() {
assert do f() |i| { i == 10i } == 10i;
//~^ ERROR: expected `bool` but found `int`
//~^^ ERROR: expected `bool` but found `int`
}