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

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

http://github.com/jruderman/rust
Rust | 12 lines | 7 code | 3 blank | 2 comment | 0 complexity | ce641579e1067a9480255cc8f5a6f092 MD5 | raw file
 1
 2
 3
 4// When all branches of an match expression result in fail, the entire
 5// match expression results in fail.
 6fn main() {
 7    let x =
 8        match true {
 9          true => { 10 }
10          false => { match true { true => { fail } false => { fail } } }
11        };
12}