rust/tests/ui/match/match-tag-nullary.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

5 lines
109 B
Rust
Raw Normal View History

enum A { A }
enum B { B }
2010-10-14 22:02:35 +00:00
fn main() { let x: A = A::A; match x { B::B => { } } } //~ ERROR mismatched types