about summary refs log tree commit diff
path: root/src/test/ui/issues/issue-52023-array-size-pointer-cast.rs
blob: 63f1128f10642234f9e8dfbea7ce4333e130bdaa (plain)
1
2
3
4
fn main() {
    let _ = [0; (&0 as *const i32) as usize]; //~ ERROR casting pointers to integers in constants
    //~^ ERROR it is undefined behavior to use this value
}