Hi, today for the first time I ran into a problem where rust did not behave as expected. However I don't understand how these two expressions are evaluated to come to those results.
Due to expression precedence! 0 < 1 is evaluated as (!0) < 1. By default integers are i32 and the ! operator inverts all bits of the operand which makes this -1 < 1.