about summary refs log tree commit diff
path: root/src/test/compile-fail/issue-5100.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/compile-fail/issue-5100.rs')
-rw-r--r--src/test/compile-fail/issue-5100.rs14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/test/compile-fail/issue-5100.rs b/src/test/compile-fail/issue-5100.rs
index 6734a546be5..5c4127c5bae 100644
--- a/src/test/compile-fail/issue-5100.rs
+++ b/src/test/compile-fail/issue-5100.rs
@@ -12,33 +12,33 @@ enum A { B, C }
 
 fn main() {
     match (true, false) {
-        B => (), //~ ERROR expected `(bool,bool)` but found an enum or structure pattern
+        B => (), //~ ERROR expected `(bool,bool)`, found an enum or structure pattern
         _ => ()
     }
 
     match (true, false) {
         (true, false, false) => ()
-        //~^ ERROR mismatched types: expected `(bool,bool)` but found tuple
-        //         (expected a tuple with 2 elements but found one with 3 elements)
+        //~^ ERROR mismatched types: expected `(bool,bool)`, found tuple
+        //         (expected a tuple with 2 elements, found one with 3 elements)
     }
 
     match (true, false) {
         box (true, false) => ()
-        //~^ ERROR mismatched types: expected `(bool,bool)` but found a box pattern
+        //~^ ERROR mismatched types: expected `(bool,bool)`, found a box pattern
     }
 
     match (true, false) {
         &(true, false) => ()
-        //~^ ERROR mismatched types: expected `(bool,bool)` but found an `&`-pointer pattern
+        //~^ ERROR mismatched types: expected `(bool,bool)`, found an `&`-pointer pattern
     }
 
 
-    let v = [('a', 'b')   //~ ERROR expected function but found `(char,char)`
+    let v = [('a', 'b')   //~ ERROR expected function, found `(char,char)`
              ('c', 'd'),
              ('e', 'f')];
 
     for &(x,y) in v.iter() {} // should be OK
 
     // Make sure none of the errors above were fatal
-    let x: char = true; //~ ERROR expected `char` but found `bool`
+    let x: char = true; //~ ERROR expected `char`, found `bool`
 }