]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-23311.rs
Rollup merge of #91804 - woppopo:const_clone, r=oli-obk
[rust.git] / src / test / 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 }