P0007 Arithmetic Panics

Arithmetic

negation result is too large; value exceeds the range of int

When this occurs

This error is triggered when: negation result is too large; value exceeds the range of int

Example error message

error[P0007]: negation result is too large; value exceeds the range of int

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.