Lyricdev
GitHub

LYR-LEX0010

a character literal that is not closed

error ยท spec 01-lexical

A character literal reaches the end of its line or of the file without its closing '.

Explanation

A character literal is one character between two single quotes on one line.

Close the literal with '.

Wrong

fn main(): void {
    let c = 'a
    ;
    let _ = c;
}
fn main(): void {
    let c = 'a';
    let _ = c;
}