blob: 67b5a877c05243d3a30754060b391d6d2e0d74cd (
plain)
1
2
3
4
5
6
|
// 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 { ret 37; } //~ ERROR Non-boolean return type
fn main() { }
|