armanriazirusterrore0308mismatched tipe parameter tipe yang diharapkan ``, ditemukan tipe terkait
//Resolve IntoIterator<Item=S>
fn sum_list<I,S>(l:I,mut s:S)->S
where I: IntoIterator,
S: AddAssign,
{
let mut it = l.into_iter();
while let Some(n) = it.next(){
s +=n //Error rised
}
s
}
ArmanRiazi