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
Non-supertrait predicates (i.e. predicates not of the form Self: Trait<..>) are not automatically elaborated. You have to add them manually:
use std::ops::{Mul};pubtraitM:Sizedwheref64:Mul<Self,Output=Self>{}pubtraitM2:Mwheref64:Mul<Self,Output=Self>// <- ADDED{fnf(self,a:f64) -> Self{
a *self}}fnmain(){}
I would expect this to compile, but it doesn't. Is this intentional? It seems that
M2
discards thef64: Mul<Self, Output=Self>
constraint.Error is:
The text was updated successfully, but these errors were encountered: