rust/tests/ui/error-codes/E0604.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
340 B
Plaintext
Raw Normal View History

2018-02-07 21:35:35 -06:00
error[E0604]: only `u8` can be cast as `char`, not `u32`
2018-12-25 09:56:47 -06:00
--> $DIR/E0604.rs:2:5
2018-02-07 21:35:35 -06:00
|
LL | 1u32 as char;
| ^^^^^^^^^^^^
2022-05-19 09:33:40 -05:00
| |
| invalid cast
| help: try `char::from_u32` instead: `char::from_u32(1u32)`
2018-02-07 21:35:35 -06:00
error: aborting due to previous error
2018-03-03 08:59:40 -06:00
For more information about this error, try `rustc --explain E0604`.