rust/tests/crashes/139815.rs
2025-05-01 17:04:37 +02:00

15 lines
210 B
Rust

//@ 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,
}
}