summary refs log tree commit diff
path: root/src/test/run-pass/alt-pattern-lit.rs
blob: afc72c80afad52fa98d7942a9d8db1c97150a849 (plain)
1
2
3
4
5
6
7
8
9
10


fn altlit(f: int) -> int {
    alt f {
      10 { #debug("case 10"); ret 20; }
      11 { #debug("case 11"); ret 22; }
    }
}

fn main() { assert (altlit(10) == 20); assert (altlit(11) == 22); }