]> git.lizzy.rs Git - rust.git/blob - tests/ui/mir/issue-71793-inline-args-storage.rs
Rollup merge of #107015 - cuviper:ra-riscv64, r=Mark-Simulacrum
[rust.git] / tests / 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 }