about summary refs log tree commit diff
path: root/src/test/compile-fail/match-struct.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/compile-fail/match-struct.rs')
-rw-r--r--src/test/compile-fail/match-struct.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/test/compile-fail/match-struct.rs b/src/test/compile-fail/match-struct.rs
index e3b47372a4f..5bda3789687 100644
--- a/src/test/compile-fail/match-struct.rs
+++ b/src/test/compile-fail/match-struct.rs
@@ -14,7 +14,12 @@ enum E { C(isize) }
 
 fn main() {
     match (S { a: 1 }) {
-        E::C(_) => (), //~ ERROR mismatched types: expected `S`, found `E`
+        E::C(_) => (),
+        //~^ ERROR mismatched types
+        //~| expected `S`
+        //~| found `E`
+        //~| expected struct `S`
+        //~| found enum `E`
         _ => ()
     }
 }