]> git.lizzy.rs Git - rust.git/blob - tests/ui/async-await/await-sequence.rs
Rollup merge of #107114 - Erk-:add-absolute-note-to-path-join, r=m-ou-se
[rust.git] / tests / ui / async-await / await-sequence.rs
1 // edition:2021
2 // compile-flags: -Z drop-tracking
3 // build-pass
4
5 use std::collections::HashMap;
6
7 fn main() {
8     let _ = real_main();
9 }
10
11 async fn nop() {}
12
13 async fn real_main() {
14     nop().await;
15     nop().await;
16     nop().await;
17     nop().await;
18
19     let mut map: HashMap<(), ()> = HashMap::new();
20     map.insert((), nop().await);
21 }