aboutsummaryrefslogtreecommitdiff
path: root/src/test/compile-fail/slot-as-pred.rs
blob: 2ba4a30cae4e8457bffee908823cbc4293e404ab (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// xfail-stage0
// -*- rust -*-

// error-pattern: mismatched types

fn f(int a, int b) : lt(a,b) {
}

fn main() {
  let int lt;
  let int a = 10;
  let int b = 23;
  check lt(a,b);
  f(a,b);
}