rust/src/test/compile-fail/not-a-pred.rs
2012-02-22 10:59:52 -08:00

9 lines
198 B
Rust

// -*- rust -*-
// error-pattern: lt is not declared pure
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); }