/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

  1. // error-pattern: mismatched types
  2. enum a { A, }
  3. enum b { B, }
  4. fn main() { let x: a = A; match x { B => { } } }