Skip to content

Rollup of 6 pull requests #107106

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 14 commits into from
Jan 20, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Add a test case for #102383
  • Loading branch information
eholk committed Jan 12, 2023
commit 96de375e6773836e47c69fd23e55c77c509a5419
21 changes: 21 additions & 0 deletions tests/ui/async-await/await-sequence.rs
Original file line number Diff line number Diff line change
@@ -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);
}