rust/src/test/compile-fail/slot-as-pred.rs

15 lines
178 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) {
}
fn main() {
let int lt;
let int a = 10;
let int b = 23;
check lt(a,b);
f(a,b);
}