2019-12-10 22:03:13 +01:00
|
|
|
error[E0369]: cannot multiply `f64` to `&T`
|
2019-03-27 13:13:09 -04:00
|
|
|
--> $DIR/trait-resolution-in-overloaded-op.rs:8:7
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
2019-03-09 15:03:44 +03:00
|
|
|
LL | a * b
|
2019-03-27 13:13:09 -04:00
|
|
|
| - ^ - f64
|
|
|
|
|
| |
|
|
|
|
|
| &T
|
2020-06-23 17:32:06 -07:00
|
|
|
|
|
|
|
|
|
help: consider further restricting this bound
|
|
|
|
|
|
|
|
|
|
|
LL | fn foo<T: MyMul<f64, f64> + std::ops::Mul<Output = f64>>(a: &T, b: f64) -> f64 {
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0369`.
|