]> git.lizzy.rs Git - rust.git/blob - tests/ui/issues/issue-23311.rs
Auto merge of #107044 - cuviper:more-llvm-ci, r=Mark-Simulacrum
[rust.git] / tests / ui / issues / issue-23311.rs
1 // run-pass
2
3 // Test that we do not ICE when pattern matching an array against a slice.
4
5 fn main() {
6     match "foo".as_bytes() {
7         b"food" => (),
8         &[b'f', ..] => (),
9         _ => ()
10     }
11 }