From 3462bb6a462253333758b12a8cb1ee72981329cb Mon Sep 17 00:00:00 2001 From: Graydon Hoare Date: Thu, 30 Aug 2012 18:57:58 -0700 Subject: [PATCH] Fix some more test breakage. --- src/test/compile-fail/do2.rs | 4 +++- src/test/compile-fail/fn-compare-mismatch.rs | 5 +++-- 2 files changed, 6 insertions(+), 3 deletions(-) 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 }