summary refs log tree commit diff
path: root/src/test/ui/issues/issue-17458.rs
blob: 444e94d829bf8c0f76d08109a2b0138fd2d891bd (plain)
1
2
3
4
5
6
static X: usize = unsafe { 0 as *const usize as usize };
//~^ ERROR: casting pointers to integers in statics is unstable

fn main() {
    assert_eq!(X, 0);
}