rust/src/test/compile-fail/not-a-pred.rs

17 lines
190 B
Rust
Raw Normal View History

2010-06-23 23:03:09 -05:00
// -*- rust -*-
// error-pattern: mismatched types
fn f(int a, int b) : lt(a,b) {
}
obj lt(int a, int b) {
}
fn main() {
let int a = 10;
let int b = 23;
check lt(a,b);
f(a,b);
}