/src/test/compile-fail/fn-compare-mismatch.rs
http://github.com/jruderman/rust · Rust · 6 lines · 5 code · 0 blank · 1 comment · 1 complexity · 170067c919064bd3c78d4cc9ad47f3e5 MD5 · raw file
- fn main() {
- fn f() { }
- fn g(i: int) { }
- let x = f == g;
- //~^ ERROR expected `extern fn()` but found `extern fn(int)`
- }