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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
204 B
Rust
Raw Normal View History

// run-pass
2019-12-30 00:23:42 +00: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', ..] => (),
_ => ()
}
}