diff options
| author | Jonas Hietala <tradet.h@gmail.com> | 2014-08-23 12:41:32 +0200 |
|---|---|---|
| committer | Jonas Hietala <tradet.h@gmail.com> | 2014-08-24 09:53:01 +0200 |
| commit | 9968ae255495704cb0c3fc1f43d2df2e84c20d5e (patch) | |
| tree | 9812a6ca9aa9325047cba5294fdc1dc5b5ff1e97 /src/test/compile-fail/wrong-mul-method-signature.rs | |
| parent | 2e5aea65cd2594f19b9043d8df0e6461504cda9b (diff) | |
| download | rust-9968ae255495704cb0c3fc1f43d2df2e84c20d5e.tar.gz rust-9968ae255495704cb0c3fc1f43d2df2e84c20d5e.zip | |
Adjust the error messages to match the pattern "expected foo, found bar"
Closes #8492
Diffstat (limited to 'src/test/compile-fail/wrong-mul-method-signature.rs')
| -rw-r--r-- | src/test/compile-fail/wrong-mul-method-signature.rs | 6 |
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 } } |
