summaryrefslogtreecommitdiffstats
path: root/src/test/ui/issues/issue-51655.rs
blob: 36fd90dabedc8d173c67eebdb9602e37a24af9a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// check-pass
#![allow(dead_code)]

const PATH_DOT: &[u8] = &[b'.'];

fn match_slice(element: &[u8]) {
    match element {
        &[] => {}
        PATH_DOT => {}
        _ => {}
    }
}

fn main() {}