rust/src/test/compile-fail/not-pred-args.rs
2012-03-05 17:05:20 -08:00

11 lines
226 B
Rust

// -*- rust -*-
// error-pattern:constraint args must be
pure fn f(q: int) -> bool { ret true; }
fn main() {
// should fail to typecheck, as pred args must be slot variables
// or literals
check (f(42 * 17));
}