AZ
error[E0605]: non-primitive cast: `*const ListNode` as `&ListNode`
--> src\main.rs:15:49
|
15 | let alias: &ListNode = unsafe { foo as &_};
| ^^^^^^^^^
|
= note: an `as` expression can only be used to convert between primitive types. Consider using the `From` trait
Почему каст не работает?