rust/src/test/ui/match/match-byte-array-patterns-2.rs
2018-12-25 21:08:33 -07:00

15 lines
211 B
Rust

fn main() {
let buf = &[0, 1, 2, 3];
match buf { //~ ERROR non-exhaustive
b"AAAA" => {}
}
let buf: &[u8] = buf;
match buf { //~ ERROR non-exhaustive
b"AAAA" => {}
}
}