rust/tests/crashes/139815.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
210 B
Rust
Raw Permalink Normal View History

2025-04-15 20:46:29 +00:00
//@ 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,
}
}