E1012 Lexer Errors

number-leading-underscore

number starts with underscore

When this occurs

Numbers like `_123`

Example error message

error[E1012]: numeric literal cannot start with underscore

How to fix

Numbers cannot start with underscore. Use `1_000` not `_1000`.

Related errors