1 A cast to `char` was attempted on a type other than `u8`.
3 Erroneous code example:
6 0u32 as char; // error: only `u8` can be cast as `char`, not `u32`
9 As the error message indicates, only `u8` can be cast into `char`. Example:
12 let c = 86u8 as char; // ok!
16 For more information about casts, take a look at the Type cast section in
17 [The Reference Book][1].
19 [1]: https://doc.rust-lang.org/reference/expressions/operator-expr.html#type-cast-expressions