summary refs log tree commit diff
path: root/src/test/ui/issues/issue-23311.rs
blob: f275c6338b194e977199ecbc22870632506decbd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// run-pass
// Test that we do not ICE when pattern matching an array against a slice.

#![feature(slice_patterns)]

fn main() {
    match "foo".as_bytes() {
        b"food" => (),
        &[b'f', ..] => (),
        _ => ()
    }
}