Sign in
fuchsia
/
third_party
/
rust
/
a8aa5114bf13d9c6b2b870c5bf63eab8e70a0018
/
.
/
src
/
test
/
ui
/
issues
/
issue-23311.rs
blob: f275c6338b194e977199ecbc22870632506decbd [
file
] [
log
] [
blame
]
// run-pass
// Test that we do not ICE when pattern matching an array against a slice.
#![
feature
(
slice_patterns
)]
fn
main
()
{
match
"foo"
.
as_bytes
()
{
b
"food"
=>
(),
&[
b
'f'
,
..]
=>
(),
_
=>
()
}
}