]> git.lizzy.rs Git - rust.git/blob - src/test/ui/mir/issue-76375.rs
Rollup merge of #101388 - compiler-errors:issue-101376, r=fee1-dead
[rust.git] / src / test / ui / mir / issue-76375.rs
1 // Regression test for issue #76375.
2 //
3 // edition:2018
4 // build-pass
5 // compile-flags: -Z mir-opt-level=3
6 // aux-build:issue_76375_aux.rs
7
8 #![crate_type = "lib"]
9
10 extern crate issue_76375_aux;
11
12 pub async fn g() {
13     issue_76375_aux::copy_prop(true);
14     h().await;
15 }
16
17 pub async fn u() {
18     let b = [0u8; 32];
19     let mut i = 0;
20     while i != 10 {
21         issue_76375_aux::dest_prop(&b);
22         h().await;
23         i += 1;
24     }
25 }
26
27 pub async fn h() {}