summaryrefslogtreecommitdiffstats
path: root/src/test/ui/match/match-tag-unary.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/match/match-tag-unary.rs')
-rw-r--r--src/test/ui/match/match-tag-unary.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/test/ui/match/match-tag-unary.rs b/src/test/ui/match/match-tag-unary.rs
new file mode 100644
index 000000000..aedceafb4
--- /dev/null
+++ b/src/test/ui/match/match-tag-unary.rs
@@ -0,0 +1,4 @@
+enum A { A(isize) }
+enum B { B(isize) }
+
+fn main() { let x: A = A::A(0); match x { B::B(y) => { } } } //~ ERROR mismatched types