PageRenderTime 9ms CodeModel.GetById 1ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/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
1fn main() {
2    fn f() { }
3    fn g(i: int) { }
4    let x = f == g;
5    //~^ ERROR expected `extern fn()` but found `extern fn(int)`
6}