2018-08-30 14:18:55 +02:00
|
|
|
//@ run-pass
|
2017-03-07 00:19:48 +09:00
|
|
|
|
2019-12-30 01:23:42 +01:00
|
|
|
// Test that we do not ICE when pattern matching an array against a slice.
|
2017-03-07 00:19:48 +09:00
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
|
match "foo".as_bytes() {
|
|
|
|
|
b"food" => (),
|
|
|
|
|
&[b'f', ..] => (),
|
|
|
|
|
_ => ()
|
|
|
|
|
}
|
|
|
|
|
}
|