@alyssa while bugs are indeed entirely impossible in Rust, leaking memory is a feature not a bug!

see doc.rust-lang.org/std/boxed/st or doc.rust-lang.org/std/mem/fn.f