// error-pattern:Number is odd pred even(x: uint) -> bool { if x < 2u { ret false; } else if (x == 2u) { ret true; } else { ret even(x - 2u); } } fn foo(x: uint) { if check even(x) { log x; } else { fail "Number is odd"; } } fn main() { foo(3u); }