diff options
Diffstat (limited to 'src/test/ui/parser/not-a-pred.rs')
-rw-r--r-- | src/test/ui/parser/not-a-pred.rs | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/src/test/ui/parser/not-a-pred.rs b/src/test/ui/parser/not-a-pred.rs deleted file mode 100644 index 5518b554d..000000000 --- a/src/test/ui/parser/not-a-pred.rs +++ /dev/null @@ -1,15 +0,0 @@ -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); -} |