1 2 3 4 5 6 7 8 9 10
// -*- rust -*- // error-pattern:impure function as operator fn f(q: int) -> bool { ret true; } fn main() { let x = 0; check (f(x)); }