1 2 3 4 5 6 7 8 9
// compile-flags: -O #![crate_type = "lib"] pub fn foo(t: &mut Vec<usize>) { // CHECK-NOT: __rust_dealloc let mut taken = std::mem::take(t); taken.pop(); *t = taken; }