]> git.proxmox.com Git - rustc.git/blob - src/test/ui/wrong-mul-method-signature.stderr
New upstream version 1.30.0~beta.7+dfsg1
[rustc.git] / src / test / ui / wrong-mul-method-signature.stderr
1 error[E0053]: method `mul` has an incompatible type for trait
2 --> $DIR/wrong-mul-method-signature.rs:26:5
3 |
4 LL | 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
10 error[E0053]: method `mul` has an incompatible type for trait
11 --> $DIR/wrong-mul-method-signature.rs:43:5
12 |
13 LL | 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
19 error[E0053]: method `mul` has an incompatible type for trait
20 --> $DIR/wrong-mul-method-signature.rs:62:5
21 |
22 LL | 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
28 error: aborting due to 3 previous errors
29
30 For more information about this error, try `rustc --explain E0053`.