4 struct ArenaSet<U: Deref, V=<U as Deref>::Target>(U, &'static V)
5 where V: 'static + ?Sized;
7 static Z: [u8; 4] = [1,2,3,4];
9 fn arena() -> &'static ArenaSet<Vec<u8>> {
10 fn __static_ref_initialize() -> ArenaSet<Vec<u8>> {
15 fn require_sync<T: Sync>(_: &T) { }
16 unsafe fn __stability() -> &'static ArenaSet<Vec<u8>> {
17 use std::mem::transmute;
18 static mut DATA: *const ArenaSet<Vec<u8>> = std::ptr::null_mut();
20 static mut ONCE: Once = Once::new();
23 ::<Box<ArenaSet<Vec<u8>>>, *const ArenaSet<Vec<u8>>>
24 (Box::new(__static_ref_initialize()));
29 let static_ref = __stability();
30 require_sync(static_ref);
36 let &ArenaSet(ref u, v) = arena();
37 assert!(u.is_empty());