E2015 Syntax Errors

Syntax

duplicate field '%s' in struct literal; field can only be initialized once

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