1 error[E0018]: raw pointers cannot be cast to integers in constants
2 --> $DIR/issue-18294.rs:13:22
4 LL | const Y: usize = &X as *const u32 as usize; //~ ERROR E0018
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^
7 error: aborting due to previous error
9 For more information about this error, try `rustc --explain E0018`.