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