1 A constant value failed to get evaluated.
3 Erroneous code example:
12 This error indicates that the compiler was unable to sensibly evaluate a
13 constant expression that had to be evaluated. Attempting to divide by 0
14 or causing an integer overflow are two ways to induce this error.
16 Ensure that the expressions given can be evaluated as the desired integer type.
18 See the [Custom Discriminants][custom-discriminants] section of the Reference
19 for more information about setting custom integer types on fieldless enums
20 using the [`repr` attribute][repr-attribute].
22 [custom-discriminants]: https://doc.rust-lang.org/reference/items/enumerations.html#custom-discriminant-values-for-field-less-enumerations
23 [repr-attribute]: https://doc.rust-lang.org/reference/type-layout.html#reprc-enums