]> git.lizzy.rs Git - rust.git/blob - src/test/ui/mir/issue-71793-inline-args-storage.rs
Merge commit 'e18101137866b79045fee0ef996e696e68c920b4' into clippyup
[rust.git] / src / test / ui / mir / issue-71793-inline-args-storage.rs
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
7 // compile-args: -Zmir-opt-level=3
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 }