]>
Commit | Line | Data |
---|---|---|
8faf50e0 | 1 | error[E0605]: non-primitive cast: `*const isize` as `&isize` |
0731742a | 2 | --> $DIR/issue-2995.rs:2:22 |
8faf50e0 | 3 | | |
532ac7d7 | 4 | LL | let _q: &isize = p as &isize; |
72b1a166 | 5 | | ^^^^^^^^^^^ an `as` expression can only be used to convert between primitive types or to coerce to a specific trait object |
8faf50e0 XL |
6 | |
7 | error: aborting due to previous error | |
8 | ||
9 | For more information about this error, try `rustc --explain E0605`. |