rust/src/test/compile-fail/slot-as-pred.rs
2010-06-23 21:03:09 -07:00

15 lines
178 B
Rust

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