LYR-PAR0002
an expression is missing
An expression is needed — after =, as an argument, an operand, a returned value — and the token there begins none.
Explanation
Where the grammar takes a value, a token that cannot begin an expression (a ;, a ), a keyword such as else) leaves the place empty. The declaration that holds the gap reports this and nothing that would follow from it.
Write the missing expression, or remove what expects one.
Wrong
fn main(): void {
let a = ;
}
Right
fn main(): void {
let a = 0;
let _ = a;
}