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

11 lines
214 B
Rust
Raw Normal View History

2011-05-04 13:32:06 -05:00
// -*- rust -*-
// error-pattern: Non-boolean return type
2011-05-04 13:32:06 -05:00
// this checks that a pred with a non-bool return
// type is rejected, even if the pred is never used
2011-07-27 07:19:39 -05:00
pred bad(a: int) -> int { ret 37; }
2011-05-04 13:32:06 -05:00
fn main() { }