1 // #12402 Operator overloading only considers the method name, not which trait is implemented
3 trait MyMul<Rhs, Res> {
4 fn mul(&self, rhs: &Rhs) -> Res;
7 fn foo<T: MyMul<f64, f64>>(a: &T, b: f64) -> f64 {
8 a * b //~ ERROR cannot multiply `&T` by `f64`