2020-11-14 18:00:00 -06:00
|
|
|
// Regression test for issue #76375.
|
|
|
|
//
|
2020-10-20 03:07:41 -05:00
|
|
|
// edition:2018
|
|
|
|
// build-pass
|
2021-03-04 07:35:11 -06:00
|
|
|
// compile-flags: -Z mir-opt-level=3
|
2020-10-20 03:07:41 -05:00
|
|
|
// aux-build:issue_76375_aux.rs
|
|
|
|
|
|
|
|
#![crate_type = "lib"]
|
|
|
|
|
|
|
|
extern crate issue_76375_aux;
|
|
|
|
|
|
|
|
pub async fn g() {
|
2020-11-14 18:00:00 -06:00
|
|
|
issue_76375_aux::copy_prop(true);
|
2020-10-20 03:07:41 -05:00
|
|
|
h().await;
|
|
|
|
}
|
|
|
|
|
2020-11-14 18:00:00 -06: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 03:07:41 -05:00
|
|
|
pub async fn h() {}
|