rust/tests/ui/consts/deref_in_pattern.rs
2023-01-11 09:32:08 +00:00

13 lines
168 B
Rust

// run-pass
// https://github.com/rust-lang/rust/issues/25574
const A: [u8; 4] = *b"fooo";
fn main() {
match *b"xxxx" {
A => {},
_ => {}
}
}