rust/tests/ui/issues/issue-23311.rs

12 lines
204 B
Rust
Raw Normal View History

// run-pass
2019-12-30 01:23:42 +01:00
// Test that we do not ICE when pattern matching an array against a slice.
fn main() {
match "foo".as_bytes() {
b"food" => (),
&[b'f', ..] => (),
_ => ()
}
}