Why use Box::leak?

163 points Integralist

Hello,

I'm a rust newbie and I've recently learned of Box::leak but I don't understand why or when you would want to leak memory.

Can someone give me some useful scenarios for this?

Thanks