]> git.lizzy.rs Git - rust.git/blob - src/test/ui/traits/resolution-in-overloaded-op.stderr
Rollup merge of #100953 - joshtriplett:write-docs, r=Mark-Simulacrum
[rust.git] / src / test / ui / traits / resolution-in-overloaded-op.stderr
1 error[E0369]: cannot multiply `&T` by `f64`
2   --> $DIR/resolution-in-overloaded-op.rs:8:7
3    |
4 LL |     a * b
5    |     - ^ - f64
6    |     |
7    |     &T
8    |
9 help: consider introducing a `where` clause, but there might be an alternative better way to express this requirement
10    |
11 LL | fn foo<T: MyMul<f64, f64>>(a: &T, b: f64) -> f64 where &T: Mul<f64> {
12    |                                                  ++++++++++++++++++
13
14 error: aborting due to previous error
15
16 For more information about this error, try `rustc --explain E0369`.