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

E0003: Invalid string escape

CodeCategoryStability
E0003LexerPermanent

Explanation

A string literal contains a backslash escape that Rue does not recognize.

Likely cause

A backslash requests an escape other than backslash, double quote, newline, tab, carriage return, or the null byte.

Examples

Unknown string escape

fn main() {
    let text = "bad\q";
}

Use a supported escape

fn main() {
    let text = "line one\nline two";
}

References