fork/rust
git clone https://git.julia.blue/fork/rust
4560ea788cb
1.39.0
1error[E0053]: method `mul` has an incompatible type for trait 2 --> $DIR/wrong-mul-method-signature.rs:16:5 3 | 4LL | fn mul(self, s: &f64) -> Vec1 { 5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected f64, found &f64 6 | 7 = note: expected type `fn(Vec1, f64) -> Vec1` 8 found type `fn(Vec1, &f64) -> Vec1` 9 10error[E0053]: method `mul` has an incompatible type for trait 11 --> $DIR/wrong-mul-method-signature.rs:33:5 12 | 13LL | fn mul(self, s: f64) -> Vec2 { 14 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct `Vec2`, found f64 15 | 16 = note: expected type `fn(Vec2, Vec2) -> f64` 17 found type `fn(Vec2, f64) -> Vec2` 18 19error[E0053]: method `mul` has an incompatible type for trait 20 --> $DIR/wrong-mul-method-signature.rs:52:5 21 | 22LL | fn mul(self, s: f64) -> f64 { 23 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected i32, found f64 24 | 25 = note: expected type `fn(Vec3, f64) -> i32` 26 found type `fn(Vec3, f64) -> f64` 27 28error[E0308]: mismatched types 29 --> $DIR/wrong-mul-method-signature.rs:63:45 30 | 31LL | let x: Vec2 = Vec2 { x: 1.0, y: 2.0 } * 2.0; // trait had reversed order 32 | ^^^ expected struct `Vec2`, found floating-point number 33 | 34 = note: expected type `Vec2` 35 found type `{float}` 36 37error[E0308]: mismatched types 38 --> $DIR/wrong-mul-method-signature.rs:63:19 39 | 40LL | let x: Vec2 = Vec2 { x: 1.0, y: 2.0 } * 2.0; // trait had reversed order 41 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct `Vec2`, found f64 42 | 43 = note: expected type `Vec2` 44 found type `f64` 45 46error: aborting due to 5 previous errors 47 48Some errors have detailed explanations: E0053, E0308. 49For more information about an error, try `rustc --explain E0053`.