mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 02:33:55 +00:00
11 lines
211 B
Rust
11 lines
211 B
Rust
// compile-flags: -O
|
|
// min-llvm-version: 16.0
|
|
#![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;
|
|
}
|