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

/src/test/run-fail/expr-if-fail.rs

http://github.com/jruderman/rust
Rust | 5 lines | 1 code | 3 blank | 1 comment | 4 complexity | d5e9354fb8dd8b9104f4935f421adb6d MD5 | raw file
1
2
3
4// error-pattern:explicit failure
5fn main() { let x = if false { 0 } else if true { fail } else { 10 }; }