Fix some more test breakage.

This commit is contained in:
Graydon Hoare 2012-08-30 18:57:58 -07:00
parent f74014b0e7
commit 3462bb6a46
2 changed files with 6 additions and 3 deletions

View File

@ -7,5 +7,7 @@
fn f(f: fn@(int) -> bool) -> bool { f(10i) }
fn main() {
assert do f() |i| { i == 10i } == 10i; //~ ERROR: expected `bool` but found `int`
assert do f() |i| { i == 10i } == 10i;
//~^ ERROR: expected `bool` but found `int`
//~^^ ERROR: expected `bool` but found `int`
}

View File

@ -5,7 +5,8 @@
fn main() {
fn f() { }
fn g(i: int) { }
fn g() { }
let x = f == g;
//~^ ERROR binary operation == cannot be applied to type
//~^ ERROR mismatched types
//~^^ ERROR cannot determine a type
}