about summary refs log tree commit diff
path: root/tests/ui/issues/issue-23311.rs
blob: e827fa1670fb384e6fa2522580cead2d6d448001 (plain)
1
2
3
4
5
6
7
8
9
10
11
//@ run-pass

// Test that we do not ICE when pattern matching an array against a slice.

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