]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0604.stderr
Suggest `if let`/`let_else` for refutable pat in `let`
[rust.git] / src / test / ui / error-codes / E0604.stderr
1 error[E0604]: only `u8` can be cast as `char`, not `u32`
2   --> $DIR/E0604.rs:2:5
3    |
4 LL |     1u32 as char;
5    |     ^^^^^^^^^^^^ invalid cast
6    |
7 help: try `char::from_u32` instead
8   --> $DIR/E0604.rs:2:5
9    |
10 LL |     1u32 as char;
11    |     ^^^^^^^^^^^^
12
13 error: aborting due to previous error
14
15 For more information about this error, try `rustc --explain E0604`.