]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-23311.rs
Merge commit '9a0c32934ebe376128230aa8da3275697b2053e7' into sync_cg_clif-2021-03-05
[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 }