PageRenderTime 10ms CodeModel.GetById 1ms app.highlight 6ms RepoModel.GetById 1ms app.codeStats 0ms

/src/test/run-pass/nested-alts.rs

http://github.com/jruderman/rust
Rust | 15 lines | 12 code | 3 blank | 0 comment | 0 complexity | 20b220a7a36b09d2ff63d2d959bf7401 MD5 | raw file
 1
 2fn baz() -> ! { fail; }
 3
 4fn foo() {
 5    match some::<int>(5) {
 6      some::<int>(x) => {
 7        let mut bar;
 8        match none::<int> { none::<int> => { bar = 5; } _ => { baz(); } }
 9        log(debug, bar);
10      }
11      none::<int> => { debug!{"hello"}; }
12    }
13}
14
15fn main() { foo(); }