We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
fn main() { const XYZ: char = 0xEF8888 as char; println!("{}", XYZ); }
Will warn "literal is out of range for u8" because u8 is the only as char cast that is acceptable.
u8
as char
We should show a better warning and suggest the \u syntax instead.
\u
Will warn "literal is out of range for
u8" becauseu8is the onlyas charcast that is acceptable.We should show a better warning and suggest the
\usyntax instead.