2019-07-02 16:30:28 -05:00
|
|
|
// build-pass (FIXME(62277): could be check-pass?)
|
2018-10-25 13:53:05 -05:00
|
|
|
|
|
|
|
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());
|
|
|
|
|
2018-10-25 15:10:41 -05:00
|
|
|
fn main() {}
|