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

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

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