1
Fork 0

remove const_raw_ptr_to_usize_cast feature

This commit is contained in:
Ralf Jung 2021-07-10 11:33:42 +02:00
parent a84d1b21ae
commit 5f0dd6db94
31 changed files with 65 additions and 315 deletions

View file

@ -1,3 +1,3 @@
fn main() {
let _ = [0; (&0 as *const i32) as usize]; //~ ERROR casting pointers to integers in constants
let _ = [0; (&0 as *const i32) as usize]; //~ ERROR pointers cannot be cast to integers during const eval
}