Re:Does the Bronze Garbage Collector Make Rust Easier to Use?
by ThomasWinwood on Friday December 24, 2021 @08:58PM
(#29679609)
If you really do want to leak memory, Rc<T> is overcomplicated - just call `Box::leak` and throw away the output.
Obviously it won't leak memory if you do it correctly, but Rust will happily let you leak memory in an Rc<T>.