summaryrefslogtreecommitdiffstats
path: root/src/test/ui/consts/issue-52023-array-size-pointer-cast.rs
blob: 2249d9879f5dc9243991ddcfb0b945ffdb152ee9 (plain)
1
2
3
fn main() {
    let _ = [0; (&0 as *const i32) as usize]; //~ ERROR pointers cannot be cast to integers during const eval
}