rust/src/test/ui/traits/trait-resolution-in-overloaded-op.stderr

17 lines
469 B
Plaintext
Raw Normal View History

2019-12-10 21:03:13 +00:00
error[E0369]: cannot multiply `f64` to `&T`
--> $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
| - ^ - f64
| |
| &T
|
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`.