rust/src/test/ui/rfc-2005-default-binding-mode/slice.rs
2018-12-25 21:08:33 -07:00

9 lines
168 B
Rust

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