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

7 lines
131 B
Rust
Raw Normal View History

fn main() {
2011-07-27 07:19:39 -05:00
fn f() { }
fn g(i: int) { }
let x = f == g;
2012-08-27 18:26:35 -05:00
//~^ ERROR binary operation == cannot be applied to type
}