summary refs log tree commit diff
path: root/src/test/run-pass/pred-not-bool.rs
blob: 6d1ad3a72adcbed9d4b23a7e28a55f3f37a98c57 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// FIXME should be in run-pass

// -*- rust -*-

// error-pattern: Non-boolean return type

// 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; }

fn main() { }