rust/src/test/ui/issues/issue-2995.rs
2018-12-25 21:08:33 -07:00

6 lines
107 B
Rust

fn bad (p: *const isize) {
let _q: &isize = p as &isize; //~ ERROR non-primitive cast
}
fn main() { }