1
Fork 0

Add a test case for #102383

This commit is contained in:
Eric Holk 2023-01-09 16:19:36 -08:00
parent 222d1ff68d
commit 96de375e67

View file

@ -0,0 +1,21 @@
// edition:2021
// compile-flags: -Z drop-tracking
// build-pass
use std::collections::HashMap;
fn main() {
let _ = real_main();
}
async fn nop() {}
async fn real_main() {
nop().await;
nop().await;
nop().await;
nop().await;
let mut map: HashMap<(), ()> = HashMap::new();
map.insert((), nop().await);
}