#![allow(unused_variables)]
#[cfg(miri)]
extern "Rust" {
fn miri_static_root(ptr: *const u8);
}
#[inline]
pub fn leak<T: ?Sized>(val: &'static T) -> &T {
#[cfg(miri)]
unsafe {
if std::mem::size_of_val(val) != 0 {
miri_static_root(val as *const _ as _);
}
}
val
}