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: *const Y::X = Y::foo(Y::x as *const Y::X);
15 //~^ ERROR `*const usize` cannot be shared between threads safely [E0277]
17 //~| ERROR use of extern static is unsafe and requires