rust/tests/ui/consts/issue-52023-array-size-pointer-cast.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

4 lines
124 B
Rust
Raw Normal View History

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