abi_stable::utils

Function 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.