rust/src/test/run-pass/pred-not-bool.rs
2012-08-01 19:16:06 -07:00

7 lines
194 B
Rust

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