Closed
Description
From @gnzlbg on December 23, 2015 18:40
When constraining on PrimInt
there is no way of performing wrapping neg in a generic way.
The "generic" way to do this seems to be to call the .wrapping_neg()
method which is offered by all primitive integers (but not by PrimInt
).
Copied from original issue: rust-num/num#146