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

13 lines
231 B
Rust
Raw Normal View History

2012-08-30 17:13:35 -07:00
// xfail-fast
// xfail-test
// This is xfail'd due to bad spurious typecheck error messages.
fn main() {
2011-07-27 14:19:39 +02:00
fn f() { }
2012-08-30 18:57:58 -07:00
fn g() { }
2011-07-27 14:19:39 +02:00
let x = f == g;
2012-08-30 18:57:58 -07:00
//~^ ERROR mismatched types
//~^^ ERROR cannot determine a type
}