PageRenderTime 62ms CodeModel.GetById 57ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/src/test/compile-fail/tail-typeck.rs

http://github.com/jruderman/rust
Rust | 7 lines | 3 code | 3 blank | 1 comment | 0 complexity | 9a6f0011088952aed8d6568647345d9b MD5 | raw file
1// error-pattern: mismatched types
2
3fn f() -> int { return g(); }
4
5fn g() -> uint { return 0u; }
6
7fn main() { let y = f(); }