rust/tests/ui/parser/not-a-pred.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
452 B
Rust
Raw Normal View History

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]
2010-06-23 23:03:09 -05:00
fn lt(a: isize, b: isize) { }
2010-06-23 23:03:09 -05:00
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);
}