rust/src/test/compile-fail/fn-compare-mismatch.rs
2012-11-15 16:59:07 -08:00

8 lines
154 B
Rust

fn main() {
fn f() { }
fn g() { }
let x = f == g;
//~^ ERROR mismatched types
//~^^ ERROR failed to find an implementation of trait
}