-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Open
Labels
A-UnicodeArea: UnicodeArea: UnicodeA-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lintsA-parserArea: The lexing & parsing of Rust source code to an ASTArea: The lexing & parsing of Rust source code to an ASTT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Description
Given the following code:
fn main() {
println!("hello {}"̣, 1);
}
The current output is:
error: unknown start of token: \u{323}
--> src/main.rs:2:23
|
2 | println!("hello{}"̣, 1);
| ^
error: could not compile `playground` due to previous error
Ideally the output should look like:
error: unknown start of token: \u{323}
--> src/main.rs:2:23
|
2 | println!("hello{}"\u{323}, 1);
| ^
help: Unicode character '\u{323}' might not be visible when rendered
error: could not compile `playground` due to previous error
Metadata
Metadata
Assignees
Labels
A-UnicodeArea: UnicodeArea: UnicodeA-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lintsA-parserArea: The lexing & parsing of Rust source code to an ASTArea: The lexing & parsing of Rust source code to an ASTT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.