blob: 3f4c171d3dc7e1074f15d2c2b5ef83e4ab404f16 [file]
error[E0605]: non-primitive cast: `*const isize` as `&isize`
--> $DIR/non-primitive-isize-ref-cast.rs:4:22
|
LL | let _q: &isize = p as &isize;
| ^^^^^^^^^^^ invalid cast
|
help: consider borrowing the value
|
LL - let _q: &isize = p as &isize;
LL + let _q: &isize = &*p;
|
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0605`.