aboutsummaryrefslogtreecommitdiff
path: root/src/test/run-pass/alt-type-simple.rs
blob: d0522e4b7781937b340bc40c9b5ca1a70e27f0c0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// xfail-boot
// xfail-stage0
// xfail-stage1
// xfail-stage2
fn altsimple(any x) {
  alt type (f) {
    case (int i) { print("int"); }
    case (str s) { print("str"); }
  }
}

fn main() {
  altsimple(5);
  altsimple("asdfasdfsDF");
}