-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
A-parserArea: The lexing & parsing of Rust source code to an ASTArea: The lexing & parsing of Rust source code to an ASTC-bugCategory: This is a bug.Category: This is a bug.T-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
See here: https://godbolt.org/z/sdv7a3
The println! outputs "f\u{ad}\u{ad}cali" - this isn't a println! issue, but the string literal also contains 2 \u{ad}
characters.
Same example, but a little more visible: the following assert is supposed to pass:
assert_eq!(6, "f\u{AD}cali".chars().count());
Issue exists since 1.0
Metadata
Metadata
Assignees
Labels
A-parserArea: The lexing & parsing of Rust source code to an ASTArea: The lexing & parsing of Rust source code to an ASTC-bugCategory: This is a bug.Category: This is a bug.T-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.