Improve diagnostics for character literals containing multiple codepoints #88684
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I tried to compile the following code (playground):
For the avoidance of doubt,
♠️
is U+2660. I expected the code to compile—but instead, the literal is rejected:Notably, it is accepted if unicode-escaped:
Meta
rustc --version --verbose
:The text was updated successfully, but these errors were encountered: