rust/src/test/compile-fail/not-a-pred.rs
2012-07-09 10:27:13 -07:00

9 lines
177 B
Rust

// -*- rust -*-
// error-pattern: lt
fn f(a: int, b: int) : lt(a, b) { }
fn lt(a: int, b: int) { }
fn main() { let a: int = 10; let b: int = 23; check (lt(a, b)); f(a, b); }