rust/src/test/compile-fail/not-a-pred-check.rs

11 lines
127 B
Rust
Raw Normal View History

2011-05-04 13:32:06 -05:00
// -*- rust -*-
// error-pattern: non-predicate
fn f(int q) -> bool { ret true; }
fn main() {
auto x = 0;
check f(x);
2011-05-04 13:32:06 -05:00
}