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

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