Fix some more test breakage.
This commit is contained in:
parent
f74014b0e7
commit
3462bb6a46
2 changed files with 6 additions and 3 deletions
|
|
@ -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`
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue