Ruta graveolens  ·  notes from a language experiment  ·  cultivated since 2025

E0004: Unterminated string

CodeCategoryStability
E0004LexerPermanent

Explanation

A string literal reached the end of its line or the end of the source file without a closing double quote.

Likely cause

The closing " is missing, or a physical newline was placed inside the literal instead of being written with the \n escape.

Examples

Missing closing quote

fn main() {
    let text = "unfinished
}

Close the string on the same line

fn main() {
    let text = "finished";
}

References