]> git.proxmox.com Git - rustc.git/blob - src/test/ui/consts/issue-67862.rs
New upstream version 1.52.0~beta.3+dfsg1
[rustc.git] / src / test / ui / consts / issue-67862.rs
1 // compile-flags: -Z mir-opt-level=3
2 // run-pass
3
4 fn e220() -> (i64, i64) {
5 #[inline(never)]
6 fn get_displacement() -> [i64; 2] {
7 [139776, 963904]
8 }
9
10 let res = get_displacement();
11 match (&res[0], &res[1]) {
12 (arg0, arg1) => (*arg0, *arg1),
13 }
14 }
15
16 fn main() {
17 assert_eq!(e220(), (139776, 963904));
18 }