3 ms·
The type signature of the leak function is pub fn leak<'a>(b: Box<T>) -> &'a mut T where T: 'a, If T is owned, or only contains ‘static references i
by steveklabnik 6y ago
The type signature of the leak function is
pub fn leak<'a>(b: Box<T>) -> &'a mut T
where
T: 'a,
If T is owned, or only contains ‘static references itself, then ‘a must also be ‘static. Does that help at all?