about summary refs log tree commit diff
path: root/src/test/compile-fail/block-must-not-have-result-while.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/compile-fail/block-must-not-have-result-while.rs')
-rw-r--r--src/test/compile-fail/block-must-not-have-result-while.rs8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/test/compile-fail/block-must-not-have-result-while.rs b/src/test/compile-fail/block-must-not-have-result-while.rs
index ed903f3fd65..ba6340ed395 100644
--- a/src/test/compile-fail/block-must-not-have-result-while.rs
+++ b/src/test/compile-fail/block-must-not-have-result-while.rs
@@ -8,10 +8,12 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-// error-pattern:mismatched types: expected `()`, found `bool`
-
 fn main() {
     while true {
-        true
+        true //~  ERROR mismatched types
+             //~| expected `()`
+             //~| found `bool`
+             //~| expected ()
+             //~| found bool
     }
 }