summaryrefslogtreecommitdiffstats
path: root/src/test/ui/parser/not-a-pred.rs
blob: 5518b554d8e530e813126db6be82bc91777b692a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
fn f(a: isize, b: isize) : lt(a, b) { }
//~^ ERROR return types are denoted using `->`
//~| ERROR expected type, found function `lt` [E0573]
//~| ERROR expected type, found local variable `a` [E0573]
//~| ERROR expected type, found local variable `b` [E0573]

fn lt(a: isize, b: isize) { }

fn main() {
    let a: isize = 10;
    let b: isize = 23;
    check (lt(a, b));
    //~^ ERROR cannot find function `check` in this scope [E0425]
    f(a, b);
}