We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 222d1ff commit 96de375Copy full SHA for 96de375
tests/ui/async-await/await-sequence.rs
@@ -0,0 +1,21 @@
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
16
17
18
19
+ let mut map: HashMap<(), ()> = HashMap::new();
20
+ map.insert((), nop().await);
21
0 commit comments