rust/src/test/compile-fail/fn-compare-mismatch.rs
2012-08-30 19:05:54 -07:00

13 lines
231 B
Rust

// xfail-fast
// xfail-test
// This is xfail'd due to bad spurious typecheck error messages.
fn main() {
fn f() { }
fn g() { }
let x = f == g;
//~^ ERROR mismatched types
//~^^ ERROR cannot determine a type
}