diff --git a/src/test/compile-fail/do2.rs b/src/test/compile-fail/do2.rs index 3488fadab15..62a64e7c3a0 100644 --- a/src/test/compile-fail/do2.rs +++ b/src/test/compile-fail/do2.rs @@ -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` } diff --git a/src/test/compile-fail/fn-compare-mismatch.rs b/src/test/compile-fail/fn-compare-mismatch.rs index 31193cf6ed7..1ca153af3f2 100644 --- a/src/test/compile-fail/fn-compare-mismatch.rs +++ b/src/test/compile-fail/fn-compare-mismatch.rs @@ -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 }