-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Strange formatting for 'more than one codepoint in char' error message #38434
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
If this gets addressed, make sure to update the error message in this section: https://doc.rust-lang.org/std/primitive.char.html#representation |
Actually, it's a little more obvious to me what's going on here now that I see how GitHub formats the hearts. It's displaying
Similar to #36998 (which I want to address), but this is more about the error message |
Interestingly, in this case, we show the entire contents of the character literal with both quotes in the error: Code: fn main() {
let meow = 'hello';
} Error (playpen):
|
It looks like rustc can't deal with the combining character |
No longer valid in current beta. |
Code (playpen)
Error:
Why do we only show one quotation mark (
'❤
) in the first line of the error? Seems like we should either display both or noneThe text was updated successfully, but these errors were encountered: