PageRenderTime 9ms CodeModel.GetById 2ms app.highlight 2ms RepoModel.GetById 2ms app.codeStats 0ms

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

http://github.com/jruderman/rust
Rust | 3 lines | 1 code | 0 blank | 2 comment | 4 complexity | ad1c40ddb78dd394c0c44a01736e1f38 MD5 | raw file
1// When all branches of an if expression result in fail, the entire if
2// expression results in fail.
3fn main() { let x = if true { 10 } else { if true { fail } else { fail } }; }