summaryrefslogtreecommitdiffstats
path: root/src/test/ui/match/match-struct.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/match/match-struct.stderr')
-rw-r--r--src/test/ui/match/match-struct.stderr11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/test/ui/match/match-struct.stderr b/src/test/ui/match/match-struct.stderr
new file mode 100644
index 000000000..a475bd5e5
--- /dev/null
+++ b/src/test/ui/match/match-struct.stderr
@@ -0,0 +1,11 @@
+error[E0308]: mismatched types
+ --> $DIR/match-struct.rs:6:9
+ |
+LL | match (S { a: 1 }) {
+ | ------------ this expression has type `S`
+LL | E::C(_) => (),
+ | ^^^^^^^ expected struct `S`, found enum `E`
+
+error: aborting due to previous error
+
+For more information about this error, try `rustc --explain E0308`.