summary refs log tree commit diff
path: root/src/test/compile-fail/not-a-pred-check.rs
blob: 24016a70b2d5dd2ee3ca48283b770205347bd23d (plain)
1
2
3
4
5
6
7
8
9
10
// -*- rust -*-
// error-pattern:impure function as operator

fn f(q: int) -> bool { ret true; }

fn main() {
    let x = 0;

    check (f(x));
}