blob: ed8f0599958ec283547756aa3ac6260dca63e2ca [file] [log] [blame] [edit]
//@ 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();
}