]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0604.stderr
Rollup merge of #97130 - notriddle:notriddle/collect-trait-impls-dup, r=GuillaumeGomez
[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    |     ^^^^^^^^^^^^
6    |     |
7    |     invalid cast
8    |     help: try `char::from_u32` instead: `char::from_u32(1u32)`
9
10 error: aborting due to previous error
11
12 For more information about this error, try `rustc --explain E0604`.