E2015 Parse Errors

missing-return-type

expected return type after arrow

When this occurs

`do foo() ->` without type

Example error message

error[E2015]: expected return type after '->'

How to fix

Add a return type after the arrow: `do foo() -> int { ... }`.

Related errors