]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-23311.rs
Merge commit '61667dedf55e3e5aa584f7ae2bd0471336b92ce9' into sync_cg_clif-2021-09-19
[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 }