rust/src/test/compile-fail/not-pred-args.rs
2011-05-20 19:54:14 -07:00

11 lines
207 B
Rust

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