3 ms·
If you really do want to leak memory, Rc<T> is overcomplicated - just call `Box::leak` and throw away the output.
by ThomasWinwood 5y ago
If you really do want to leak memory, Rc<T> is overcomplicated - just call `Box::leak` and throw away the output.
- klodolph 5y agoRc<T> is the preferred way to introduce unintentional memory leaks.