DF
Size: a a a
DF
H
DF
P
H
АК
AB
A
IB
DS
GA
Д
GA
АК
error[E0368]: binary assignment operation `-=` cannot be applied to type `&mut TotalAmount`
--> collections\src\lib.rs:137:39
|
137 | .map(|amount| total_amount -= amount.into());
| ------------^^^^^^^^^^^^^^^^^
| |
| cannot use `-=` on type `&mut TotalAmount`
|
= note: the trait `std::ops::SubAssign` is not implemented for `&mut TotalAmount`
АК
АК
TotalAmount уже есть std::ops::SubAssignf
AT
AT