/src/test/compile-fail/alt-tag-nullary.rs
http://github.com/jruderman/rust · Rust · 7 lines · 3 code · 3 blank · 1 comment · 1 complexity · ce81ef9c19df9ebba0124d913f4bccef MD5 · raw file
- // error-pattern: mismatched types
- enum a { A, }
- enum b { B, }
- fn main() { let x: a = A; match x { B => { } } }