]>
Commit | Line | Data |
---|---|---|
1b1a35ee XL |
1 | // Verifies that inliner emits StorageLive & StorageDead when introducing |
2 | // temporaries for arguments, so that they don't become part of the generator. | |
3 | // Regression test for #71793. | |
4 | // | |
5 | // check-pass | |
6 | // edition:2018 | |
6a06907d | 7 | // compile-args: -Zmir-opt-level=3 |
1b1a35ee XL |
8 | |
9 | #![crate_type = "lib"] | |
10 | ||
11 | pub async fn connect() {} | |
12 | ||
13 | pub async fn connect_many() { | |
14 | Vec::<String>::new().first().ok_or("").unwrap(); | |
15 | connect().await; | |
16 | } |