Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
ThomasWinwood
· 4y ago · 0 comments
If you really do want to leak memory, Rc<T> is overcomplicated - just call `Box::leak` and throw away the output.
Comments
[–]
klodolph
4y ago
Rc<T> is the preferred way to introduce unintentional memory leaks.