We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f74014b commit 3462bb6Copy full SHA for 3462bb6
src/test/compile-fail/do2.rs
@@ -7,5 +7,7 @@
7
fn f(f: fn@(int) -> bool) -> bool { f(10i) }
8
9
fn main() {
10
- assert do f() |i| { i == 10i } == 10i; //~ ERROR: expected `bool` but found `int`
+ assert do f() |i| { i == 10i } == 10i;
11
+ //~^ ERROR: expected `bool` but found `int`
12
+ //~^^ ERROR: expected `bool` but found `int`
13
}
src/test/compile-fail/fn-compare-mismatch.rs
@@ -5,7 +5,8 @@
5
6
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
0 commit comments