]> git.proxmox.com Git - rustc.git/blame - src/test/ui/mir/issue-76375.rs
New upstream version 1.52.0~beta.3+dfsg1
[rustc.git] / src / test / ui / mir / issue-76375.rs
CommitLineData
fc512014
XL
1// Regression test for issue #76375.
2//
29967ef6
XL
3// edition:2018
4// build-pass
6a06907d 5// compile-flags: -Z mir-opt-level=3
29967ef6
XL
6// aux-build:issue_76375_aux.rs
7
8#![crate_type = "lib"]
9
10extern crate issue_76375_aux;
11
12pub async fn g() {
fc512014 13 issue_76375_aux::copy_prop(true);
29967ef6
XL
14 h().await;
15}
16
fc512014
XL
17pub 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
29967ef6 27pub async fn h() {}