fn is_even(x: u32) -> bool { is_odd(x + 1) } fn is_odd(x: u32) -> bool { x != 0 && is_even(x + 1) }
Other options:
Re: Tests self-diagnostic
Say:
the bug in the intention is not very easy to see. (And, by the way, is_odd(2) produces 100% code coverage, which says something about that metric).