|
LL - let _ = v as &u8;
LL + let _ = &*v;
- |
+ |
error[E0605]: non-primitive cast: `*const u8` as `E`
--> $DIR/cast-rfc0401.rs:30:13
error[E0604]: only `u8` can be cast as `char`, not `u32`
--> $DIR/cast-rfc0401.rs:41:13
|
-LL | let _ = 0x61u32 as char;
- | ^^^^^^^^^^^^^^^ invalid cast
- |
-help: try `char::from_u32` instead
- --> $DIR/cast-rfc0401.rs:41:13
- |
LL | let _ = 0x61u32 as char;
| ^^^^^^^^^^^^^^^
+ | |
+ | invalid cast
+ | help: try `char::from_u32` instead: `char::from_u32(0x61u32)`
error[E0606]: casting `bool` as `f32` is invalid
--> $DIR/cast-rfc0401.rs:43:13