error: only u8
can be cast as char
, not u8
#9918
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
Running rustc 0.9-pre 9d6c251 on x86_64 linux, the following code
gives the highly confusing error:
This can be avoided by removing the "* 1", annotating b as a u8, or annotating the 1 as u8, but presumably should be perfectly valid as-is.
The text was updated successfully, but these errors were encountered: