summaryrefslogtreecommitdiffstats
path: root/src/test/ui/mir/issue-71793-inline-args-storage.rs
blob: 18f2e38d14c4acfc017fd77aba8e4e0616e3dced (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Verifies that inliner emits StorageLive & StorageDead when introducing
// temporaries for arguments, so that they don't become part of the generator.
// Regression test for #71793.
//
// check-pass
// edition:2018
// compile-args: -Zmir-opt-level=3

#![crate_type = "lib"]

pub async fn connect() {}

pub async fn connect_many() {
    Vec::<String>::new().first().ok_or("").unwrap();
    connect().await;
}