rust/tests/codegen/issue-103840.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
185 B
Rust
Raw Normal View History

2022-12-29 11:33:04 -06:00
// 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;
}