Show better warning for trying to cast non-u8 scalar to char #44201
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
E-mentor
Call for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
WG-diagnostics
Working group: Diagnostics
Will warn "literal is out of range for
u8
" becauseu8
is the onlyas char
cast that is acceptable.We should show a better warning and suggest the
\u
syntax instead.The text was updated successfully, but these errors were encountered: