Sign in
fuchsia
/
third_party
/
rust
/
7de9402b77ded0d8ec9e1c554521b2121449ef2b
/
.
/
src
/
test
/
ui
/
pattern
/
issue-53820-slice-pattern-large-array.rs
blob: c910cded96be44c137f7764c1c670fc32e67f412 [
file
] [
log
] [
blame
]
// check-pass
// This used to cause a stack overflow in the compiler.
#![
feature
(
slice_patterns
)]
fn
main
()
{
const
LARGE_SIZE
:
usize
=
1024
*
1024
;
let
[..]
=
[
0u8
;
LARGE_SIZE
];
match
[
0u8
;
LARGE_SIZE
]
{
[..]
=>
{}
}
}