---
source: full-moon/tests/fail_cases.rs
expression: result.errors
input_file: full-moon/tests/cases/fail/parser/function-5
---
- AstError:
token:
start_position:
bytes: 9
line: 1
character: 10
end_position:
bytes: 14
line: 1
character: 15
token_type:
type: Symbol
symbol: local
additional: expected function name
- AstError:
token:
start_position:
bytes: 14
line: 1
character: 15
end_position:
bytes: 15
line: 1
character: 16
token_type:
type: Symbol
symbol: (
additional: "expected either a variable name or `function`"
- AstError:
token:
start_position:
bytes: 14
line: 1
character: 15
end_position:
bytes: 15
line: 1
character: 16
token_type:
type: Symbol
symbol: (
additional: "expected an expression after `(`"
- AstError:
token:
start_position:
bytes: 15
line: 1
character: 16
end_position:
bytes: 16
line: 1
character: 17
token_type:
type: Symbol
symbol: )
additional: "unexpected token, this needs to be a statement"