]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/binop/binops-issue-22743.rs
10 impl Mul
<Foo
> for f64 {
13 fn mul(self, rhs
: Foo
) -> Foo
{
14 // intentionally do something that is not *
15 Foo { x: self + rhs.x }
20 let f
: Foo
= Foo { x: 5.0 }
;
22 let f2
: Foo
= val
* f
;
23 assert_eq
!(f2
.x
, 8.0);