Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
11 lines (7 sloc) 270 Bytes
// build-pass (FIXME(62277): could be check-pass?)
struct Wrap<T>(T);
unsafe impl<T> Send for Wrap<T> {}
unsafe impl<T> Sync for Wrap<T> {}
static FOO: Wrap<*const u32> = Wrap([42, 44, 46].as_ptr());
static BAR: Wrap<*const u8> = Wrap("hello".as_ptr());
fn main() {}
You can’t perform that action at this time.