rust/src/test/compile-fail/not-a-pred.rs

9 lines
198 B
Rust
Raw Normal View History

2010-06-23 23:03:09 -05:00
// -*- rust -*-
// error-pattern: lt is not declared pure
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 lt(a: int, b: int) { }
2010-06-23 23:03:09 -05:00
fn main() { let a: int = 10; let b: int = 23; check (lt(a, b)); f(a, b); }