]> git.lizzy.rs Git - rust.git/blob - src/test/run-pass/pred-not-bool.rs
Merge branch 'doc-comments'
[rust.git] / src / test / run-pass / pred-not-bool.rs
1 // this checks that a pred with a non-bool return
2 // type is rejected, even if the pred is never used
3
4 pure fn bad(a: int) -> int { ret 37; } //~ ERROR Non-boolean return type
5
6 fn main() { }