blob: ad38105b6aa0eaf1c287ff628c080b4becb6f629 (
plain)
1
2
3
4
5
6
7
8
9
10
|
// compile-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() {}
|