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