2010-06-23 23:03:09 -05:00
|
|
|
// -*- rust -*-
|
2011-06-15 17:14:30 -05:00
|
|
|
// error-pattern: Non-predicate in constraint: lt
|
2010-06-23 23:03:09 -05:00
|
|
|
|
2011-08-19 17:16:48 -05:00
|
|
|
fn f(a: int, b: int) : lt(a, b) { }
|
2010-06-23 23:03:09 -05:00
|
|
|
|
2011-07-27 07:19:39 -05:00
|
|
|
obj lt(a: int, b: int) { }
|
2010-06-23 23:03:09 -05:00
|
|
|
|
2011-08-19 17:16:48 -05:00
|
|
|
fn main() { let a: int = 10; let b: int = 23; check (lt(a, b)); f(a, b); }
|