summaryrefslogtreecommitdiffstats
path: root/tests/ui/consts/deref_in_pattern.rs
blob: cc47b5b49c0b3d54c50f48cc5a134cd85e45dc51 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// run-pass

// https://github.com/rust-lang/rust/issues/25574

const A: [u8; 4] = *b"fooo";

fn main() {
    match *b"xxxx" {
        A => {},
        _ => {}
    }
}