]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-23311.rs
Rollup merge of #63230 - tmandry:disallow-possibly-uninitialized, r=Centril
[rust.git] / src / test / ui / issues / issue-23311.rs
1 // run-pass
2 // Test that we do not ICE when pattern matching an array against a slice.
3
4 #![feature(slice_patterns)]
5
6 fn main() {
7     match "foo".as_bytes() {
8         b"food" => (),
9         &[b'f', ..] => (),
10         _ => ()
11     }
12 }