Add a test case for #102383
This commit is contained in:
parent
222d1ff68d
commit
96de375e67
1 changed files with 21 additions and 0 deletions
21
tests/ui/async-await/await-sequence.rs
Normal file
21
tests/ui/async-await/await-sequence.rs
Normal 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);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue