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

7 lines
137 B
Rust
Raw Normal View History

fn main() {
2011-07-27 14:19:39 +02:00
fn f() { }
fn g(i: int) { }
let x = f == g;
//!^ ERROR expected `native fn()` but found `native fn(++int)`
}