rust/src/test/ui/issues/issue-52023-array-size-pointer-cast.rs
2019-08-02 23:04:11 +02:00

5 lines
163 B
Rust

fn main() {
let _ = [0; (&0 as *const i32) as usize]; //~ ERROR casting pointers to integers in constants
//~^ ERROR evaluation of constant value failed
}