#![allow(unused_variables)] fn main() { #[allow(dead_code)] /// Drops remaining items in `src` and if the layouts of `T` and `U` match it /// returns an empty Vec backed by the original allocation. Otherwise it returns a new /// empty vec. pub fn recycle_allocation(src: Vec) -> Vec { src.into_iter().filter_map(|_| None).collect() } }