rust/src/test/compile-fail/not-a-pred-check.rs
2012-03-05 17:05:20 -08:00

11 lines
146 B
Rust

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