2 // [thir]compile-flags: -Z thir-unsafeck
7 pub static x: *const usize;
9 pub fn foo(value: *const X) -> *const X {
14 static foo: &Y::X = &*Y::foo(Y::x as *const Y::X);
15 //~^ ERROR dereference of raw pointer
17 //~| ERROR use of extern static is unsafe and requires