]> git.lizzy.rs Git - rust.git/blob - tests/ui/consts/issue-67862.rs
Rollup merge of #106873 - BoxyUwU:ty_const_formatting, r=compiler-errors
[rust.git] / tests / 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 }