rust/tests/ui/consts/issue-52023-array-size-pointer-cast.rs
2023-01-11 09:32:08 +00:00

4 lines
124 B
Rust

fn main() {
let _ = [0; (&0 as *const i32) as usize]; //~ ERROR pointers cannot be cast to integers during const eval
}