rust/tests/ui/mir/issue-71793-inline-args-storage.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
410 B
Rust
Raw Normal View History

// Verifies that inliner emits StorageLive & StorageDead when introducing
2023-10-19 21:46:28 +00:00
// temporaries for arguments, so that they don't become part of the coroutine.
// 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;
}