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
...attempting to use the implementation on numeric types fails because they haven't technically implemented Add. There should probably be some compiler magic to ensure that numeric types satisfy such generic bounds, even if they don't technically implement the trait.
The text was updated successfully, but these errors were encountered:
Right now if you write a generic implementation on all types that implement
Add
, like so:...attempting to use the implementation on numeric types fails because they haven't technically implemented Add. There should probably be some compiler magic to ensure that numeric types satisfy such generic bounds, even if they don't technically implement the trait.
The text was updated successfully, but these errors were encountered: