rust/src/test/compile-fail/pred-not-bool.rs
2011-05-20 19:54:14 -07:00

14 lines
215 B
Rust

// -*- rust -*-
// error-pattern: Non-boolean return type
// this checks that a pred with a non-bool return
// type is rejected, even if the pred is never used
pred bad(int a) -> int {
ret 37;
}
fn main() {
}