Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
codegen
/
issues
/
issue-103840.rs
blob: 14f157771e0776aee0f71cc4ee2323427191212e [
file
] [
log
] [
blame
] [
edit
]
//@ 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
;
}