2015-01-08 10:54:35 +00:00
|
|
|
fn f(a: isize, b: isize) : lt(a, b) { }
|
2020-10-15 19:21:45 +00:00
|
|
|
//~^ 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-24 04:03:09 +00:00
|
|
|
|
2015-01-08 10:54:35 +00:00
|
|
|
fn lt(a: isize, b: isize) { }
|
2010-06-24 04:03:09 +00:00
|
|
|
|
2020-10-15 19:21:45 +00: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);
|
|
|
|
}
|