summary refs log tree commit diff
path: root/src/test/run-pass/nested-alts.rs
blob: 82707479306589f331629e30d6d800a10caaf3bf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15

fn baz() -> ! { fail; }

fn foo() {
    match Some::<int>(5) {
      Some::<int>(x) => {
        let mut bar;
        match None::<int> { None::<int> => { bar = 5; } _ => { baz(); } }
        log(debug, bar);
      }
      None::<int> => { debug!("hello"); }
    }
}

fn main() { foo(); }