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

/src/test/compile-fail/arg-type-mismatch.rs

http://github.com/jruderman/rust
Rust | 6 lines | 2 code | 3 blank | 1 comment | 0 complexity | 85a0edccc822f9ec18efbffd16d26fcf MD5 | raw file
1
2// error-pattern: mismatched types
3
4fn f(x: int) { }
5
6fn main() { let i: (); i = f(()); }