]> git.proxmox.com Git - rustc.git/blame - src/test/ui/mir/issue-71793-inline-args-storage.rs
New upstream version 1.52.0~beta.3+dfsg1
[rustc.git] / src / test / ui / mir / issue-71793-inline-args-storage.rs
CommitLineData
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
11pub async fn connect() {}
12
13pub async fn connect_many() {
14 Vec::<String>::new().first().ok_or("").unwrap();
15 connect().await;
16}