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
traitHasS{typeMyS:Default + AddAssign;}structHasSImpl;implHasSforHasSImpl{typeMyS = u32;}#[derive(Debug,PartialEq,TypedBuilder)]structFoo<S:Default + AddAssign>{#[builder(via_mutators, mutators(fn x_plus<H>(self, s: <HasHasS>::MyS)// ^^^^^^ cannot infer type of the type parameter `H` declared on the method `x_plus`whereH:HasS<MyS = S> {self.x += s;}))]x:S,}
The issue in the generated code:
impl<S:Default + AddAssign>FooBuilder<S,((S,),)>{// ..fnx_plus<H>(self,s: <HasHasS>::MyS) -> FooBuilder<S,((S,),)>whereH:HasS<MyS = S>,{// ..{let(s) = __args;
__mutator.x_plus::<H>(s);// ^^^^^// this was missing}//..}}