blob: 62a64e7c3a0da00c6c4cc6e9695a1d5e3bb81c6f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
// 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`
}
|