mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 06:51:58 +00:00
Fix some more test breakage.
This commit is contained in:
parent
f74014b0e7
commit
3462bb6a46
@ -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…
Reference in New Issue
Block a user