rust/src/test/compile-fail/not-a-pred-check.rs
2011-07-27 15:54:33 +02:00

10 lines
132 B
Rust

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