rust/src/test/compile-fail/pred-not-bool.rs

14 lines
208 B
Rust
Raw Normal View History

2011-05-04 13:32:06 -05:00
// -*- rust -*-
// error-pattern: mismatched types
// 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() {
}