logo
pub const NO_INTEGER_LEADING_ZEROS: u128 = 1 << 12; // 4_096u128
Expand description

Leading zeros before an integer value are not allowed.

If the value is a literal, then this distinction applies when the value is treated like an integer literal, typically when there is no decimal point. If the value is parsed, then this distinction applies when the value as parsed as an integer.

Warning

This also does not mean that the value parsed will be correct, for example, in languages like C, this will not auto- deduce that the radix is 8 with leading zeros, for an octal literal.