PageRenderTime 8ms CodeModel.GetById 1ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/src/test/compile-fail/alt-tag-unary.rs

http://github.com/jruderman/rust
Rust | 7 lines | 3 code | 3 blank | 1 comment | 0 complexity | 849c90276051487d726cf351ad9ccd15 MD5 | raw file
1// error-pattern: mismatched types
2
3enum a { A(int), }
4enum b { B(int), }
5
6fn main() { let x: a = A(0); match x { B(y) => { } } }
7