about summary refs log tree commit diff
path: root/src/test/compile-fail/wrong-mul-method-signature.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/compile-fail/wrong-mul-method-signature.rs')
-rw-r--r--src/test/compile-fail/wrong-mul-method-signature.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test/compile-fail/wrong-mul-method-signature.rs b/src/test/compile-fail/wrong-mul-method-signature.rs
index bb30715f75e..e3aed148a23 100644
--- a/src/test/compile-fail/wrong-mul-method-signature.rs
+++ b/src/test/compile-fail/wrong-mul-method-signature.rs
@@ -20,7 +20,7 @@ struct Vec1 {
 // Expecting ref in input signature
 impl Mul<f64, Vec1> for Vec1 {
     fn mul(&self, s: f64) -> Vec1 {
-    //~^ ERROR: method `mul` has an incompatible type for trait: expected &-ptr but found f64
+    //~^ ERROR: method `mul` has an incompatible type for trait: expected &-ptr, found f64
         Vec1 {
             x: self.x * s
         }
@@ -35,7 +35,7 @@ struct Vec2 {
 // Wrong type parameter ordering
 impl Mul<Vec2, f64> for Vec2 {
     fn mul(&self, s: f64) -> Vec2 {
-    //~^ ERROR: method `mul` has an incompatible type for trait: expected &-ptr but found f64
+    //~^ ERROR: method `mul` has an incompatible type for trait: expected &-ptr, found f64
         Vec2 {
             x: self.x * s,
             y: self.y * s
@@ -52,7 +52,7 @@ struct Vec3 {
 // Unexpected return type
 impl Mul<f64, i32> for Vec3 {
     fn mul(&self, s: &f64) -> f64 {
-    //~^ ERROR: method `mul` has an incompatible type for trait: expected i32 but found f64
+    //~^ ERROR: method `mul` has an incompatible type for trait: expected i32, found f64
         *s
     }
 }