aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/rust/compile/issue-3588.rs
blob: 744d9671c42a6c028c38dc14df6faedb6abca605 (plain)
1
2
3
4
5
const FOO: i32 = if true { [1, 2, 3] } else { [2, 3, 4] }[0];

pub fn test() -> i32 {
    FOO
}