rust/tests/ui/consts/deref_in_pattern.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
169 B
Rust
Raw Normal View History

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