about summary refs log tree commit diff
path: root/src/test/compile-fail/block-must-not-have-result-res.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/compile-fail/block-must-not-have-result-res.rs')
-rw-r--r--src/test/compile-fail/block-must-not-have-result-res.rs8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/test/compile-fail/block-must-not-have-result-res.rs b/src/test/compile-fail/block-must-not-have-result-res.rs
index 328c032325e..6161660ddf7 100644
--- a/src/test/compile-fail/block-must-not-have-result-res.rs
+++ b/src/test/compile-fail/block-must-not-have-result-res.rs
@@ -8,13 +8,15 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-// error-pattern:mismatched types: expected `()`, found `bool`
-
 struct r;
 
 impl Drop for r {
     fn drop(&mut self) {
-        true
+        true //~  ERROR mismatched types
+             //~| expected ()
+             //~| found bool
+             //~| expected ()
+             //~| found bool
     }
 }