14 lines
208 B
Rust
14 lines
208 B
Rust
|
// -*- rust -*-
|
||
|
|
||
|
// error-pattern: mismatched types
|
||
|
|
||
|
// 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() {
|
||
|
}
|