summary refs log tree commit diff
path: root/src/test/ui/issues/issue-51655.rs
blob: 989fcc041a097813116c6ecbef7e579ad862020c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// compile-pass
#![allow(dead_code)]

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

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

fn main() {}