2011-05-02 14:28:35 -07:00
|
|
|
// -*- rust -*-
|
|
|
|
|
|
|
|
// error-pattern: Constraint args must be
|
|
|
|
|
2011-08-23 18:25:50 -07:00
|
|
|
pure fn f(q: int) -> bool { ret true; }
|
2011-05-02 14:28:35 -07:00
|
|
|
|
|
|
|
fn main() {
|
2011-07-27 14:48:34 +02:00
|
|
|
// should fail to typecheck, as pred args must be slot variables
|
|
|
|
// or literals
|
2011-07-27 14:19:39 +02:00
|
|
|
check (f(42 * 17));
|
2011-08-19 15:16:48 -07:00
|
|
|
}
|