summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-23311.rs
blob: 62c96840b3bc4ad6dcfd0e50482d69abee2f5e67 (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', ..] => (),
        _ => ()
    }
}