Function abi_stable::utils::leak_value

source ·
pub fn leak_value<'a, T>(value: T) -> &'a T
where T: 'a,
Expand description

Leaks value into the heap, and returns a reference to it.

Warning

You must be careful when calling this function, since this leak is ignored by miri.