]> git.proxmox.com Git - rustc.git/blob - src/test/ui/mir/auxiliary/issue_76375_aux.rs
Update unsuspicious file list
[rustc.git] / src / test / ui / mir / auxiliary / issue_76375_aux.rs
1 // edition:2018
2 // compile-flags: -Z mir-opt-level=3
3
4 #[inline(always)]
5 pub fn copy_prop(s: bool) -> String {
6 let a = "Hello world!".to_string();
7 let b = a;
8 let c = b;
9 if s {
10 c
11 } else {
12 String::new()
13 }
14 }
15
16 #[inline(always)]
17 pub fn dest_prop(x: &[u8]) -> &[u8] {
18 let y = &x[..x.len()];
19 y
20 }