P0025 Arithmetic Panics
Arithmetic
u128 subtraction result is negative, but u128 cannot hold negative values
When this occurs
This error is triggered when: u128 subtraction result is negative, but u128 cannot hold negative values
Example error message
error[P0025]:
u128 subtraction result is negative, but u128 cannot hold negative values
How to fix
Review the error message and check your code at the indicated location. The message describes what went wrong — fix the underlying issue it identifies.
Related errors
No related errors.