E9005 Stdlib Errors

Stdlib

invalid range: start (%lld) must be less than end (%lld)

When this occurs

Using `range(start, end)` where start > end

Example error message

error[E9005]: range(10, 5): start must be <= end

How to fix

Ensure the start value is less than or equal to the end value. Swap the arguments if needed.

Related errors