summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-2995.rs
blob: 0da7909480d205a5b9ab196d67e3147e054aba11 (plain)
1
2
3
4
5
fn bad (p: *const isize) {
    let _q: &isize = p as &isize; //~ ERROR non-primitive cast
}

fn main() { }