PageRenderTime 9ms CodeModel.GetById 2ms app.highlight 4ms RepoModel.GetById 1ms app.codeStats 0ms

/src/test/run-pass/alt-type-simple.rs

http://github.com/jruderman/rust
Rust | 14 lines | 10 code | 3 blank | 1 comment | 0 complexity | bb4b48c4bdd81d8ea263b7c326bb482d MD5 | raw file
 1
 2// xfail-test
 3
 4fn altsimple(any x) {
 5  match type (f) {
 6    case (int i) { print("int"); }
 7    case (str s) { print("str"); }
 8  }
 9}
10
11fn main() {
12  altsimple(5);
13  altsimple("asdfasdfsDF");
14}