about summary refs log tree commit diff
path: root/tests/ui/consts/deref_in_pattern.rs
blob: eb49a3dc78fd1afecaf459d5840d71c39c4300d4 (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 => {},
        _ => {}
    }
}