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
|
|
|
|
|
2012-08-01 19:30:05 -05:00
|
|
|
pure fn bad(a: int) -> int { return 37; } //~ ERROR Non-boolean return type
|
2011-05-04 13:32:06 -05:00
|
|
|
|
2011-08-19 17:16:48 -05:00
|
|
|
fn main() { }
|