]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/deref_in_pattern.rs
Auto merge of #61491 - stjepang:impls-for-accesserror, r=dtolnay
[rust.git] / src / test / ui / consts / deref_in_pattern.rs
1 // run-pass
2
3 // https://github.com/rust-lang/rust/issues/25574
4
5 const A: [u8; 4] = *b"fooo";
6
7 fn main() {
8     match *b"xxxx" {
9         A => {},
10         _ => {}
11     }
12 }