about summary refs log tree commit diff
path: root/src/test/compile-fail/explicit-self-lifetime-mismatch.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/compile-fail/explicit-self-lifetime-mismatch.rs')
-rw-r--r--src/test/compile-fail/explicit-self-lifetime-mismatch.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/test/compile-fail/explicit-self-lifetime-mismatch.rs b/src/test/compile-fail/explicit-self-lifetime-mismatch.rs
index 285792e26b1..b5346a1c5d1 100644
--- a/src/test/compile-fail/explicit-self-lifetime-mismatch.rs
+++ b/src/test/compile-fail/explicit-self-lifetime-mismatch.rs
@@ -16,10 +16,10 @@ struct Foo<'a,'b> {
 impl<'a,'b> Foo<'a,'b> {
     // The number of errors is related to the way invariance works.
     fn bar(self: Foo<'b,'a>) {}
-    //~^ ERROR mismatched types: expected `Foo<'a,'b>` but found `Foo<'b,'a>`
-    //~^^ ERROR mismatched types: expected `Foo<'a,'b>` but found `Foo<'b,'a>`
-    //~^^^ ERROR mismatched types: expected `Foo<'b,'a>` but found `Foo<'a,'b>`
-    //~^^^^ ERROR mismatched types: expected `Foo<'b,'a>` but found `Foo<'a,'b>`
+    //~^ ERROR mismatched types: expected `Foo<'a,'b>`, found `Foo<'b,'a>`
+    //~^^ ERROR mismatched types: expected `Foo<'a,'b>`, found `Foo<'b,'a>`
+    //~^^^ ERROR mismatched types: expected `Foo<'b,'a>`, found `Foo<'a,'b>`
+    //~^^^^ ERROR mismatched types: expected `Foo<'b,'a>`, found `Foo<'a,'b>`
 }
 
 fn main() {}