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

8 lines
154 B
Rust
Raw Normal View History

fn main() {
2011-07-27 07:19:39 -05:00
fn f() { }
2012-08-30 20:57:58 -05:00
fn g() { }
2011-07-27 07:19:39 -05:00
let x = f == g;
2012-08-30 20:57:58 -05:00
//~^ ERROR mismatched types
2012-11-15 16:36:38 -06:00
//~^^ ERROR failed to find an implementation of trait
}