You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Typo originally reported in the compiler issue tracker:
rust-lang/rust#81686 (comment)
It doesn't make sense to cast a pointer to a float, and it's currently
rejected by the compiler:
error[E0606]: casting `*const T` as `f32` is invalid
--> test.rs:2:5
|
2 | a as f32
| ^^^^^^^^
error: aborting due to previous error
I think what's meant here is "integer type" rather than "numeric type".
0 commit comments