summaryrefslogtreecommitdiffstats
path: root/src/test/ui/match/match-tag-unary.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/match/match-tag-unary.stderr')
-rw-r--r--src/test/ui/match/match-tag-unary.stderr11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/test/ui/match/match-tag-unary.stderr b/src/test/ui/match/match-tag-unary.stderr
new file mode 100644
index 000000000..31f77bdff
--- /dev/null
+++ b/src/test/ui/match/match-tag-unary.stderr
@@ -0,0 +1,11 @@
+error[E0308]: mismatched types
+ --> $DIR/match-tag-unary.rs:4:43
+ |
+LL | fn main() { let x: A = A::A(0); match x { B::B(y) => { } } }
+ | - ^^^^^^^ expected enum `A`, found enum `B`
+ | |
+ | this expression has type `A`
+
+error: aborting due to previous error
+
+For more information about this error, try `rustc --explain E0308`.