PageRenderTime 5ms CodeModel.GetById 1ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/src/test/compile-fail/missing-return.rs

http://github.com/jruderman/rust
Rust | 6 lines | 2 code | 3 blank | 1 comment | 0 complexity | 33b0fb2384cdb3dfd3e16acdd3a9d533 MD5 | raw file
1// error-pattern: return
2
3fn f() -> int { }
4
5fn main() { f(); }
6