let x = String::from("abc"); std::mem::drop(&x); std::mem::drop(&x); std::mem::drop(&x); std::mem::drop(&x);
https://play.rust-lang.org/?version=stable&mode=debug&editio...
On my phone so I can’t triple check, but there’s no bound on T, you can pass in any type.