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


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

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