Skip to content

Commit 5b420a9

Browse files
committed
Add regression test for issue 53820
1 parent d93c1b3 commit 5b420a9

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// check-pass
2+
#![feature(slice_patterns)]
3+
4+
fn main() {
5+
const LARGE_SIZE: usize = 1024 * 1024;
6+
let [..] = [0u8; LARGE_SIZE];
7+
match [0u8; LARGE_SIZE] {
8+
[..] => {}
9+
}
10+
}

0 commit comments

Comments
 (0)