Skip to content

Commit 3462bb6

Browse files
committed
Fix some more test breakage.
1 parent f74014b commit 3462bb6

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

src/test/compile-fail/do2.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,7 @@
77
fn f(f: fn@(int) -> bool) -> bool { f(10i) }
88

99
fn main() {
10-
assert do f() |i| { i == 10i } == 10i; //~ ERROR: expected `bool` but found `int`
10+
assert do f() |i| { i == 10i } == 10i;
11+
//~^ ERROR: expected `bool` but found `int`
12+
//~^^ ERROR: expected `bool` but found `int`
1113
}

src/test/compile-fail/fn-compare-mismatch.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55

66
fn main() {
77
fn f() { }
8-
fn g(i: int) { }
8+
fn g() { }
99
let x = f == g;
10-
//~^ ERROR binary operation == cannot be applied to type
10+
//~^ ERROR mismatched types
11+
//~^^ ERROR cannot determine a type
1112
}

0 commit comments

Comments
 (0)