E0001: Unexpected character
| Code | Category | Stability |
|---|---|---|
E0001 | Lexer | Permanent |
Explanation
Rue found a source character that cannot begin any token in its current position.
Likely cause
The source contains an unsupported punctuation character, a non-ASCII character outside a comment or string, or an invisible character such as a byte-order mark away from the start of the file.
Examples
Unsupported punctuation
fn main() {
$
}
Keep non-ASCII text inside a string
fn main() {
let greeting = "héllo";
}