mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 07:14:28 +00:00
17 lines
410 B
Rust
17 lines
410 B
Rust
// Verifies that inliner emits StorageLive & StorageDead when introducing
|
|
// temporaries for arguments, so that they don't become part of the generator.
|
|
// 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;
|
|
}
|