fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
564 B16 linesraw
1error[E0369]: cannot multiply `&T` by `f64`
2  --> $DIR/resolution-in-overloaded-op.rs:8:7
3   |
4LL |     a * b
5   |     - ^ - f64
6   |     |
7   |     &T
8   |
9help: consider introducing a `where` clause, but there might be an alternative better way to express this requirement
10   |
11LL | fn foo<T: MyMul<f64, f64>>(a: &T, b: f64) -> f64 where &T: Mul<f64, Output = f64> {
12   |                                                  ++++++++++++++++++++++++++++++++
13
14error: aborting due to previous error
15
16For more information about this error, try `rustc --explain E0369`.