rust/tests/ui/mir/issue-76375.rs

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

28 lines
455 B
Rust
Raw Normal View History

// Regression test for issue #76375.
//
2020-10-20 03:07:41 -05:00
// edition:2018
// build-pass
// 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() {
issue_76375_aux::copy_prop(true);
2020-10-20 03:07:41 -05:00
h().await;
}
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() {}