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

13 lines
200 B
Rust
Raw Normal View History

2010-06-23 23:03:09 -05:00
// -*- rust -*-
2011-06-14 13:29:20 -05:00
// error-pattern: unresolved name: lt
2010-06-23 23:03:09 -05:00
fn f(a: int, b: int) : lt(a, b) { }
2010-06-23 23:03:09 -05:00
fn main() {
2011-07-27 07:19:39 -05:00
let lt: int;
let a: int = 10;
let b: int = 23;
check (lt(a, b));
f(a, b);
}