E0003: Invalid string escape
| Code | Category | Stability |
|---|---|---|
E0003 | Lexer | Permanent |
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";
}