2020-11-15 00:00:00 +00:00
|
|
|
// Regression test for issue #76375.
|
|
|
|
//
|
2020-10-20 08:07:41 +00:00
|
|
|
// edition:2018
|
|
|
|
// build-pass
|
2021-03-04 13:35:11 +00:00
|
|
|
// compile-flags: -Z mir-opt-level=3
|
2020-10-20 08:07:41 +00:00
|
|
|
// aux-build:issue_76375_aux.rs
|
|
|
|
|
|
|
|
#![crate_type = "lib"]
|
|
|
|
|
|
|
|
extern crate issue_76375_aux;
|
|
|
|
|
|
|
|
pub async fn g() {
|
2020-11-15 00:00:00 +00:00
|
|
|
issue_76375_aux::copy_prop(true);
|
2020-10-20 08:07:41 +00:00
|
|
|
h().await;
|
|
|
|
}
|
|
|
|
|
2020-11-15 00:00:00 +00:00
|
|
|
pub async fn u() {
|
|
|
|
let b = [0u8; 32];
|
|
|
|
let mut i = 0;
|
|
|
|
while i != 10 {
|
|
|
|
issue_76375_aux::dest_prop(&b);
|
|
|
|
h().await;
|
|
|
|
i += 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-10-20 08:07:41 +00:00
|
|
|
pub async fn h() {}
|