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

/src/test/compile-fail/if-branch-types.rs

http://github.com/jruderman/rust
Rust | 3 lines | 1 code | 1 blank | 1 comment | 2 complexity | 3ea77fe4517ad6da2cdb24f0b7395bb9 MD5 | raw file
1// error-pattern:mismatched types
2
3fn main() { let x = if true { 10i } else { 10u }; }