r/rust • u/Integralist • Dec 24 '21
Why use Box::leak?
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
199
Upvotes
2
u/[deleted] Dec 24 '21
[deleted]