rust/src/test/compile-fail/not-a-pred-check.rs
2011-08-25 17:23:35 -07:00

11 lines
147 B
Rust

// -*- rust -*-
// error-pattern: Impure function as operator
fn f(q: int) -> bool { ret true; }
fn main() {
let x = 0;
check (f(x));
}