2018-12-25 21:08:33 -07:00

10 lines
168 B
Rust

#![feature(slice_patterns)]
pub fn main() {
let sl: &[u8] = b"foo";
match sl { //~ ERROR non-exhaustive patterns
[first, remainder..] => {},
};
}