]> git.lizzy.rs Git - rust.git/blob - src/test/ui/pattern/usefulness/match-byte-array-patterns-2.rs
Auto merge of #78682 - glandium:issue78471, r=lcnr
[rust.git] / src / test / ui / pattern / usefulness / match-byte-array-patterns-2.rs
1 fn main() {
2     let buf = &[0, 1, 2, 3];
3
4     match buf { //~ ERROR non-exhaustive
5         b"AAAA" => {}
6     }
7
8     let buf: &[u8] = buf;
9
10     match buf { //~ ERROR non-exhaustive
11         b"AAAA" => {}
12     }
13 }