about summary refs log tree commit diff
path: root/tests/crashes/139815.rs
blob: 9094acdc94b21bac729bc014f88c924c7f3bee00 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//@ known-bug: #139815

#![feature(generic_const_exprs)]
fn is_123<const N: usize>(
    x: [u32; {
        N + 1;
        5
    }],
) -> bool {
    match x {
        [1, 2] => true,
        _ => false,
    }
}