2019-12-10 21:03:13 +00:00
|
|
|
error[E0369]: cannot multiply `f64` to `&T`
|
2019-03-27 17:13:09 +00:00
|
|
|
--> $DIR/trait-resolution-in-overloaded-op.rs:8:7
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | a * b
|
2019-03-27 17:13:09 +00:00
|
|
|
| - ^ - f64
|
|
|
|
| |
|
|
|
|
| &T
|
2020-06-24 00:32:06 +00: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 12:28:26 +00:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0369`.
|