aboutsummaryrefslogtreecommitdiff
path: root/src/test/compile-fail/not-a-pred-check.rs
blob: 55698ad26414d2b0e2f2f17e79905724c02eae0d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
// -*- rust -*-
// xfail-boot
// xfail-stage0
// error-pattern: non-predicate

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

fn main() {
  auto x = 0;

  check f(x); 
}