You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
use std::ops::Add;structBigFloat;implAdd<BigFloat>forf64{typeOutput = BigFloat;fnadd(self,rhs:BigFloat) -> BigFloat{BigFloat}}fnmain(){}
The error:
test7.rs:5:1: 11:2 error: the type `f64` does not reference any types defined in this crate; only traits defined in the current crate can be implemented for arbitrary types [E0117]
test7.rs:5 impl Add<BigFloat> for f64 {
test7.rs:6 type Output = BigFloat;
test7.rs:7
test7.rs:8 fn add(self, rhs: BigFloat) -> BigFloat {
test7.rs:9 BigFloat
test7.rs:10 }
...
error: aborting due to previous error