mirror of
https://github.com/allankoechke/rust.git
synced 2026-11-30 11:05:36 +00:00
12 lines
279 B
Rust
12 lines
279 B
Rust
//! Regression test for <https://github.com/rust-lang/rust/issues/23311>.
|
|
//! Test that we do not ICE when pattern matching an array against a slice.
|
|
//@ run-pass
|
|
|
|
fn main() {
|
|
match "foo".as_bytes() {
|
|
b"food" => (),
|
|
&[b'f', ..] => (),
|
|
_ => ()
|
|
}
|
|
}
|