Sign in
android
/
toolchain
/
rustc
/
951ae7a5eefab93734d1309f0497487f13f59fbf
/
.
/
tests
/
ui
/
async-await
/
drop-and-assign.rs
blob: ef39033a9d4bbbcca10e5f07c3e107ff484f5902 [
file
] [
log
] [
blame
]
// edition:2021
// build-pass
struct
A
;
impl
Drop
for
A
{
fn
drop
(&
mut
self
)
{}
}
pub
async
fn
f
()
{
let
mut
a
=
A
;
a
=
A
;
drop
(
a
);
async
{}.
await
;
}
fn
assert_send
<
T
:
Send
>(
_
:
T
)
{}
fn
main
()
{
let
_
=
f
();
}