2011-05-04 13:32:06 -05:00
|
|
|
// -*- rust -*-
|
2011-05-04 17:24:07 -05:00
|
|
|
// xfail-boot
|
|
|
|
// xfail-stage0
|
2011-05-04 13:32:06 -05:00
|
|
|
|
2011-05-04 17:24:07 -05:00
|
|
|
// 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
|
|
|
|
|
|
|
|
pred bad(int a) -> int {
|
|
|
|
ret 37;
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
}
|